DefaultRequestHandlerOnBeforeBrowse Method |
Version 79.1.350
Namespace:
CefSharp.Handler
Assembly:
CefSharp (in CefSharp.dll) Version: 76.1.90.0 (76.1.90.0)
Syntax public virtual bool OnBeforeBrowse(
IWebBrowser chromiumWebBrowser,
IBrowser browser,
IFrame frame,
IRequest request,
bool userGesture,
bool isRedirect
)
public:
virtual bool OnBeforeBrowse(
IWebBrowser^ chromiumWebBrowser,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
bool userGesture,
bool isRedirect
)
Parameters
- chromiumWebBrowser
- Type: CefSharpIWebBrowser
the ChromiumWebBrowser control - browser
- Type: CefSharpIBrowser
the browser object - frame
- Type: CefSharpIFrame
The frame the request is coming from - request
- Type: CefSharpIRequest
the request object - cannot be modified in this callback - userGesture
- Type: SystemBoolean
The value will be true if the browser navigated via explicit user gesture
(e.g. clicking a link) or false if it navigated automatically (e.g. via the DomContentLoaded event). - isRedirect
- Type: SystemBoolean
has the request been redirected
Return Value
Type:
BooleanReturn true to cancel the navigation or false to allow the navigation to proceed.
Implements
IRequestHandlerOnBeforeBrowse(IWebBrowser, IBrowser, IFrame, IRequest, Boolean, Boolean)See Also