Click or drag to resize

ResourceHandlerFromFilePath Method

Version 130.1.90
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: 129.0.110.0 (129.0.110.0)
Syntax
public static IResourceHandler FromFilePath(
	string filePath,
	string mimeType = null,
	bool autoDisposeStream = false
)

Parameters

filePath  String
Location of the file.
mimeType  String  (Optional)
The mimeType if null then text/html is used.
autoDisposeStream  Boolean  (Optional)
Dispose of the stream when finished with (you will only be able to serve one request).

Return Value

IResourceHandler
IResourceHandler.
See Also