Click or drag to resize
DefaultResourceHandlerFactoryGetResourceHandler Method
Version 51.0.0
Called before a resource is loaded. To specify a handler for the resource return a ResourceHandler object

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 51.0.0.0 (51.0.0.0)
Syntax
public virtual IResourceHandler GetResourceHandler(
	IWebBrowser browserControl,
	IBrowser browser,
	IFrame frame,
	IRequest request
)

Parameters

browserControl
Type: CefSharpIWebBrowser
The browser UI control
browser
Type: CefSharpIBrowser
the browser object
frame
Type: CefSharpIFrame
the frame object
request
Type: CefSharpIRequest
the request object - cannot be modified in this callback

Return Value

Type: IResourceHandler
To allow the resource to load normally return NULL otherwise return an instance of ResourceHandler with a valid stream

Implements

IResourceHandlerFactoryGetResourceHandler(IWebBrowser, IBrowser, IFrame, IRequest)
See Also