Click or drag to resize

ChromiumWebBrowserLoadUrlAsync Method

Version 91.1.160
Load the url in the main frame of the browser

Namespace:  CefSharp.OffScreen
Assembly:  CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 91.1.160.0 (91.1.160.0)
Syntax
public Task<LoadUrlAsyncResponse> LoadUrlAsync(
	string url = null,
	SynchronizationContext ctx = null
)

Parameters

url (Optional)
Type: SystemString
url to load
ctx (Optional)
Type: System.ThreadingSynchronizationContext
SynchronizationContext to execute the continuation on, if null then the ThreadPool will be used.

Return Value

Type: TaskLoadUrlAsyncResponse
A [!:Task<int>] that can be awaited to load the url and return the HttpStatusCode and CefErrorCode. A HttpStatusCode equal to 200 and None is considered a success.

Implements

IWebBrowserLoadUrlAsync(String, SynchronizationContext)
See Also