Click or drag to resize

ResourceRequestHandlerFactoryGetResourceRequestHandler Method

Version 75.1.140
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: 75.1.140.0 (75.1.140.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

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

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