Click or drag to resize

IResourceRequestHandlerOnResourceLoadComplete Method

Version 130.1.90
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: 129.0.110.0 (129.0.110.0)
Syntax
void OnResourceLoadComplete(
	IWebBrowser chromiumWebBrowser,
	IBrowser browser,
	IFrame frame,
	IRequest request,
	IResponse response,
	UrlRequestStatus status,
	long receivedContentLength
)

Parameters

chromiumWebBrowser  IWebBrowser
The ChromiumWebBrowser control
browser  IBrowser
the browser object - may be null if originating from ServiceWorker or CefURLRequest
frame  IFrame
the frame object - may be null if originating from ServiceWorker or CefURLRequest
request  IRequest
the request object - cannot be modified in this callback
response  IResponse
the response object - cannot be modified in this callback
status  UrlRequestStatus
indicates the load completion status
receivedContentLength  Int64
is the number of response bytes actually read.
See Also