Click or drag to resize

ResourceRequestHandlerFactoryGetResourceRequestHandler Method

Version 79.1.350
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: 76.1.90.0 (76.1.90.0)
Syntax
protected virtual IResourceRequestHandler GetResourceRequestHandler(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	bool isNavigation,
	bool isDownload,
	string requestInitiator,
	ref bool disableDefaultHandling
)

Parameters

chromiumWebBrowser
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
isNavigation
Type: SystemBoolean

[Missing <param name="isNavigation"/> documentation for "M:CefSharp.ResourceRequestHandlerFactory.GetResourceRequestHandler(CefSharp.IWebBrowser,CefSharp.IBrowser,CefSharp.IFrame,CefSharp.IRequest,System.Boolean,System.Boolean,System.String,System.Boolean@)"]

isDownload
Type: SystemBoolean

[Missing <param name="isDownload"/> documentation for "M:CefSharp.ResourceRequestHandlerFactory.GetResourceRequestHandler(CefSharp.IWebBrowser,CefSharp.IBrowser,CefSharp.IFrame,CefSharp.IRequest,System.Boolean,System.Boolean,System.String,System.Boolean@)"]

requestInitiator
Type: SystemString

[Missing <param name="requestInitiator"/> documentation for "M:CefSharp.ResourceRequestHandlerFactory.GetResourceRequestHandler(CefSharp.IWebBrowser,CefSharp.IBrowser,CefSharp.IFrame,CefSharp.IRequest,System.Boolean,System.Boolean,System.String,System.Boolean@)"]

disableDefaultHandling
Type: SystemBoolean

[Missing <param name="disableDefaultHandling"/> documentation for "M:CefSharp.ResourceRequestHandlerFactory.GetResourceRequestHandler(CefSharp.IWebBrowser,CefSharp.IBrowser,CefSharp.IFrame,CefSharp.IRequest,System.Boolean,System.Boolean,System.String,System.Boolean@)"]

Return Value

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