ResourceRequestHandlerFactoryRegisterHandler Method |
Version 101.0.180
Register a handler for the specified Url
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 101.0.180.0 (101.0.180.0)
Syntax public virtual bool RegisterHandler(
string url,
byte[] data,
string mimeType = "text/html",
bool oneTimeUse = false
)
public:
virtual bool RegisterHandler(
String^ url,
array<unsigned char>^ data,
String^ mimeType = L"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:
Booleanreturns true if the Url was successfully parsed into a Uri otherwise false
See Also