Click or drag to resize

ChromiumWebBrowser.LoadUrlAsync Method

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

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

Parameters

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

Return Value

Type: Task<LoadUrlAsyncResponse>
A Task<TResult> 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

IWebBrowser.LoadUrlAsync(String, SynchronizationContext)
See Also