Click or drag to resize

IRequestContextRegisterSchemeHandlerFactory Method

Version 102.0.100
Register a scheme handler factory for the specified schemeName and optional domainName. An empty domainName value for a standard scheme will cause the factory to match all domain names. The domainName value will be ignored for non-standard schemes. If schemeName is a built-in scheme and no handler is returned by factory then the built-in scheme handler factory will be called. If schemeName is a custom scheme then you must also implement the CefApp::OnRegisterCustomSchemes() method in all processes. This function may be called multiple times to change or remove the factory that matches the specified schemeName and optional domainName.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: (
bool RegisterSchemeHandlerFactory(
	string schemeName,
	string domainName,
	ISchemeHandlerFactory factory


Type: SystemString
Scheme Name
Type: SystemString
Optional domain name
Type: CefSharpISchemeHandlerFactory
Scheme handler factory

Return Value

Type: Boolean
Returns false if an error occurs.
See Also