ResourceHandlerFromFilePath Method |
Version 84.4.10
Gets the resource from the file path specified. Use the Cef.GetMimeType()
helper method to lookup the mimeType if required. Uses CefStreamResourceHandler for reading the data
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 84.4.10.0 (84.4.10.0)
Syntax public static IResourceHandler FromFilePath(
string filePath,
string mimeType = null,
bool autoDisposeStream = false
)
public:
static IResourceHandler^ FromFilePath(
String^ filePath,
String^ mimeType = nullptr,
bool autoDisposeStream = false
)
Parameters
- filePath
- Type: SystemString
Location of the file. - mimeType (Optional)
- Type: SystemString
The mimeType if null then text/html is used. - autoDisposeStream (Optional)
- Type: SystemBoolean
Dispose of the stream when finished with (you will only be able to serve one
request).
Return Value
Type:
IResourceHandlerIResourceHandler.
See Also