DefaultResourceHandlerFactoryRegisterHandler Method |
Version 63.0.0
Register a handler for the specified Url
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax public virtual bool RegisterHandler(
string url,
IResourceHandler handler,
bool oneTimeUse = false
)
public:
virtual bool RegisterHandler(
String^ url,
IResourceHandler^ handler,
bool oneTimeUse = false
)
Parameters
- url
- Type: SystemString
url - handler
- Type: CefSharpIResourceHandler
handler - oneTimeUse (Optional)
- Type: SystemBoolean
Whether or not the handler should be used once (true) or until manually unregistered (false)
Return Value
Type:
Booleanreturns true if the Url was successfully parsed into a Uri otherwise false
See Also