IResourceRequestHandlerGetResourceHandler Method |
Version 110.0.300
Called on the CEF IO thread before a resource is loaded. To specify a handler for the resource return a
IResourceHandler object
Namespace:
CefSharp
Assembly:
CefSharp (in CefSharp.dll) Version: 110.0.300.0 (110.0.300.0)
Syntax IResourceHandler GetResourceHandler(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IRequest request
)
IResourceHandler^ GetResourceHandler(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request
)
Parameters
- chromiumWebBrowser
- Type: CefSharpIWebBrowser
The browser UI control - browser
- Type: CefSharpIBrowser
the browser object - may be null if originating from ServiceWorker or CefURLRequest - frame
- Type: CefSharpIFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest - request
- Type: CefSharpIRequest
the request object - cannot be modified in this callback
Return Value
Type:
IResourceHandlerTo allow the resource to load using the default network loader return null otherwise return an instance of
IResourceHandler with a valid stream
See Also