Click or drag to resize

ResourceRequestHandlerFactoryRegisterHandler Method

Version 130.1.90
Register a handler for the specified Url

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

Parameters

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

Return Value

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