Click or drag to resize
IRequestHandler.OnBeforeBrowse Method
Version 63.0.0
Called before browser navigation. If the navigation is allowed FrameLoadStart and FrameLoadEnd will be called. If the navigation is canceled LoadError will be called with an ErrorCode value of Aborted.

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 63.0.0.0 (63.0.0.0)
Syntax
bool OnBeforeBrowse(
	IWebBrowser browserControl,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	bool isRedirect
)

Parameters

browserControl
Type: CefSharp.IWebBrowser
the ChromiumWebBrowser control
browser
Type: CefSharp.IBrowser
the browser object
frame
Type: CefSharp.IFrame
The frame the request is coming from
request
Type: CefSharp.IRequest
the request object - cannot be modified in this callback
isRedirect
Type: System.Boolean
has the request been redirected

Return Value

Type: Boolean
Return true to cancel the navigation or false to allow the navigation to proceed.
See Also