CefSharp.ResourceHandler.FromFilePath C# (CSharp) Method

FromFilePath() public static method

Gets the resource from the file path specified. Use the ResourceHandler.GetMimeType helper method to lookup the mimeType if required.
public static FromFilePath ( string fileName, string mimeType = null ) : ResourceHandler
fileName string Location of the file.
mimeType string The mimeType if null then text/html is used.
return ResourceHandler
        public static ResourceHandler FromFilePath(string fileName, string mimeType = null)
        {
            return new ResourceHandler(mimeType ?? DefaultMimeType, ResourceHandlerType.File) { FilePath = fileName };
        }