Click or drag to resize

ChromiumWebBrowserCreateBrowserAsync Method

Version 109.1.110
Create the underlying CEF browser. The address and request context passed into the constructor will be used. If a ActionT delegate was passed into the constructor it will not be called as this method overrides that value internally.

Namespace:  CefSharp.OffScreen
Assembly:  CefSharp.OffScreen (in CefSharp.OffScreen.dll) Version: 109.1.110.0 (109.1.110.0)
Syntax
public Task<IBrowser> CreateBrowserAsync(
	IWindowInfo windowInfo = null,
	IBrowserSettings browserSettings = null
)

Parameters

windowInfo (Optional)
Type: CefSharpIWindowInfo
Window information used when creating the browser
browserSettings (Optional)
Type: CefSharpIBrowserSettings
Browser initialization settings

Return Value

Type: TaskIBrowser
A TaskTResult that represents the creation of the underlying CEF browser (IBrowser instance. When the task completes then the CEF Browser will have been created and you can start performing basic tasks. Note that the control's BrowserInitialized event will be invoked after this task completes.
Exceptions
ExceptionCondition
ExceptionAn instance of the underlying offscreen browser has already been created, this method can only be called once.
See Also