Click or drag to resize
IRequestHandler.OnBeforeResourceLoad Method
Version 63.0.0
Called before a resource request is loaded. For async processing return ContinueAsync and execute Continue(Boolean) or Cancel()

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax
CefReturnValue OnBeforeResourceLoad(
	IWebBrowser browserControl,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	IRequestCallback callback
)

Parameters

browserControl
Type: CefSharp.IWebBrowser
The ChromiumWebBrowser control
browser
Type: CefSharp.IBrowser
the browser object
frame
Type: CefSharp.IFrame
The frame object
request
Type: CefSharp.IRequest
the request object - can be modified in this callback.
callback
Type: CefSharp.IRequestCallback
Callback interface used for asynchronous continuation of url requests.

Return Value

Type: CefReturnValue
To cancel loading of the resource return Cancel or Continue to allow the resource to load normally. For async return ContinueAsync
See Also