Click or drag to resize

FolderSchemeHandlerFactory Class

Version 102.0.100
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: 102.0.100.0 (102.0.100.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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldStatic memberGetMimeTypeDelegate
GetMimeType(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