Click or drag to resize
IRequestHandlerOnResourceRedirect Method
Version 55.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: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 55.0.0.0 (55.0.0.0)
Syntax
void OnResourceRedirect(
	IWebBrowser browserControl,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	IResponse response,
	ref 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
response
Type: CefSharpIResponse
the response object
newUrl
Type: SystemString
the new URL and can be changed if desired
See Also