ResourceRequestHandlerFactoryRegisterHandler Method |
Version 130.1.90
Register a handler for the specified Url
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntaxpublic 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 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
Booleanreturns true if the Url was successfully parsed into a Uri otherwise false
See Also