Click or drag to resize

LegacyResourceHandlerFactoryGetResourceHandler Method

Version 73.1.130
Called before a resource is loaded. To specify a handler for the resource return a ResourceHandler object

Namespace:  CefSharp.Lagacy
Assembly:  CefSharp (in CefSharp.dll) Version: 73.1.130.0 (73.1.130.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