ResourceHandlerFromFilePath Method |
Version 63.0.0
Gets the resource from the file path specified. Use the
GetMimeType(String)
helper method to lookup the mimeType if required. Uses CefStreamResourceHandler for reading the data
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax public static IResourceHandler FromFilePath(
string filePath,
string mimeType = null
)
public:
static IResourceHandler^ FromFilePath(
String^ filePath,
String^ mimeType = nullptr
)
Parameters
- filePath
- Type: SystemString
Location of the file. - mimeType (Optional)
- Type: SystemString
The mimeType if null then text/html is used.
Return Value
Type:
IResourceHandlerIResourceHandler.
See Also