ResourceHandlerFromFilePath Method |
Version 57.0.0
Gets the resource from the file path specified. Use the
GetMimeType(String)
helper method to lookup the mimeType if required.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 57.0.0.0 (57.0.0.0)
Syntax public static ResourceHandler FromFilePath(
string fileName,
string mimeType = null
)
public:
static ResourceHandler^ FromFilePath(
String^ fileName,
String^ mimeType = nullptr
)
Parameters
- fileName
- Type: SystemString
Location of the file. - mimeType (Optional)
- Type: SystemString
The mimeType if null then text/html is used.
Return Value
Type:
ResourceHandlerResourceHandler.
See Also