ResourceHandlerFromFilePath Method |
Version 55.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: 55.0.0.0 (55.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