DefaultRequestHandlerOnBeforeResourceLoad Method |
Version 71.0.0
Namespace:
CefSharp.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 71.0.0.0 (71.0.0.0)
Syntax public virtual CefReturnValue OnBeforeResourceLoad(
IWebBrowser browserControl,
IBrowser browser,
IFrame frame,
IRequest request,
IRequestCallback callback
)
public:
virtual CefReturnValue OnBeforeResourceLoad(
IWebBrowser^ browserControl,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
IRequestCallback^ callback
)
Parameters
- browserControl
- Type: CefSharpIWebBrowser
The ChromiumWebBrowser control - browser
- Type: CefSharpIBrowser
the browser object - frame
- Type: CefSharpIFrame
The frame object - request
- Type: CefSharpIRequest
the request object - can be modified in this callback. - callback
- Type: CefSharpIRequestCallback
Callback interface used for asynchronous continuation of url requests.
Return Value
Type:
CefReturnValueTo cancel loading of the resource return
Cancel
or
Continue to allow the resource to load normally. For async
return
ContinueAsyncImplements
IRequestHandlerOnBeforeResourceLoad(IWebBrowser, IBrowser, IFrame, IRequest, IRequestCallback)See Also