Click or drag to resize

FolderSchemeHandlerFactory Class

Version 130.1.90
FolderSchemeHandlerFactory is a very simple scheme handler that allows you to map requests for urls to a folder on your file system. For example creating a setting the rootFolder to c:\projects\CefSharp\CefSharp.Example\Resources registering the scheme handler
Inheritance Hierarchy
SystemObject
  CefSharp.SchemeHandlerFolderSchemeHandlerFactory

Namespace: CefSharp.SchemeHandler
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public class FolderSchemeHandlerFactory : ISchemeHandlerFactory

The FolderSchemeHandlerFactory type exposes the following members.

Constructors
 NameDescription
Public methodFolderSchemeHandlerFactory Initialize a new instance of FolderSchemeHandlerFactory
Top
Methods
 NameDescription
Protected methodCreate If the file requested is within the rootFolder then a IResourceHandler reference to the file requested will be returned otherwise a 404 ResourceHandler will be returned.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberGetMimeTypeDelegateGetMimeType(String) is being deprecated in favour of using Chromiums native mimeType lookup which is accessible using Cef.GetMimeType, this method is however not directly available as it exists in CefSharp.Core, to get around this we set this static delegate with a reference to Cef.GetMimeType when Cef.Initialize is called.
Top
See Also