Click or drag to resize

IResourceRequestHandlerOnResourceLoadComplete Method

Version 89.0.170
Called on the CEF IO thread when a resource load has completed. This method will be called for all requests, including requests that are aborted due to CEF shutdown or destruction of the associated browser. In cases where the associated browser is destroyed this callback may arrive after the OnBeforeClose(IWebBrowser, IBrowser) callback for that browser. The IsValid method can be used to test for this situation, and care should be taken not to call browser or frame methods that modify state (like LoadURL, SendProcessMessage, etc.) if the frame is invalid.

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 89.0.170.0 (89.0.170.0)
Syntax
void OnResourceLoadComplete(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	IResponse response,
	UrlRequestStatus status,
	long receivedContentLength
)

Parameters

chromiumWebBrowser
Type: CefSharpIWebBrowser
The ChromiumWebBrowser control
browser
Type: CefSharpIBrowser
the browser object - may be null if originating from ServiceWorker or CefURLRequest
frame
Type: CefSharpIFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest
request
Type: CefSharpIRequest
the request object - cannot be modified in this callback
response
Type: CefSharpIResponse
the response object - cannot be modified in this callback
status
Type: CefSharpUrlRequestStatus
indicates the load completion status
receivedContentLength
Type: SystemInt64
is the number of response bytes actually read.
See Also