Click or drag to resize

ResourceRequestHandlerFactoryRegisterHandler Method

Version 102.0.100
Register a handler for the specified Url

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 102.0.100.0 (102.0.100.0)
Syntax
public virtual bool RegisterHandler(
	string url,
	byte[] data,
	string mimeType = "text/html",
	bool oneTimeUse = false
)

Parameters

url
Type: SystemString
url
data
Type: SystemByte
The data in byte[] format that will be used for the response
mimeType (Optional)
Type: SystemString
mime type
oneTimeUse (Optional)
Type: SystemBoolean
Whether or not the handler should be used once (true) or until manually unregistered (false)

Return Value

Type: Boolean
returns true if the Url was successfully parsed into a Uri otherwise false
See Also