IRequestHandlerOnResourceRedirect Method |
Version 51.0.0
Called on the IO thread when a resource load is redirected. The
Url
parameter will contain the old URL and other request-related information.
Namespace: CefSharpAssembly: CefSharp (in CefSharp.dll) Version: 51.0.0.0 (51.0.0.0)
Syntax void OnResourceRedirect(
IWebBrowser browserControl,
IBrowser browser,
IFrame frame,
IRequest request,
ref string newUrl
)
void OnResourceRedirect(
IWebBrowser^ browserControl,
IBrowser^ browser,
IFrame^ frame,
IRequest^ request,
String^% newUrl
)
Parameters
- browserControl
- Type: CefSharpIWebBrowser
The ChromiumWebBrowser control - browser
- Type: CefSharpIBrowser
the browser object - frame
- Type: CefSharpIFrame
The frame that is being redirected. - request
- Type: CefSharpIRequest
the request object - cannot be modified in this callback - newUrl
- Type: SystemString
the new URL and can be changed if desired
See Also