ChromiumWebBrowserCreateBrowserAsync Method |
Version 98.1.210
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: 98.1.210.0 (98.1.210.0)
Syntax public Task<IBrowser> CreateBrowserAsync(
IWindowInfo windowInfo = null,
IBrowserSettings browserSettings = null
)
public:
Task<IBrowser^>^ CreateBrowserAsync(
IWindowInfo^ windowInfo = nullptr,
IBrowserSettings^ browserSettings = nullptr
)
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 Exception | Condition |
---|
Exception | An instance of the underlying offscreen browser has already been created, this method can only be called once. |
See Also