NavigationWebView.EnsureCoreWebView2Async(CoreWebView2Environment?, CoreWebView2ControllerOptions?) method¶
Defined in
Type: NavigationWebView
Namespace: CrissCross.WPF
Assembly: CrissCross.WPF.dll
Applies to
net10.0-windows10.0.19041, net9.0-windows10.0.19041, net8.0-windows10.0.19041, net481
Overloads¶
- 1.
public Task EnsureCoreWebView2Async(CoreWebView2Environment? environment = null, CoreWebView2ControllerOptions? controllerOptions = null) - 2.
public Task EnsureCoreWebView2Async(CoreWebView2Environment environment)
1. Overload¶
public Task EnsureCoreWebView2Async(CoreWebView2Environment? environment = null, CoreWebView2ControllerOptions? controllerOptions = null)
Summary: Ensures the core web view2 asynchronous.
Parameters
| Name | Type | Description |
|---|---|---|
environment = null | CoreWebView2Environment? | The environment. |
controllerOptions = null | CoreWebView2ControllerOptions? | The controller options. |
Returns: Task -- A Task that represents the background initialization process. When the task completes then the Microsoft.Web.WebView2.Wpf.WebView2.CoreWebView2 property will be available for use (i.e. non-null). Note that the control's Microsoft.Web.WebView2.Wpf.WebView2.CoreWebView2InitializationCompleted event will be invoked before the task completes.
2. Overload¶
public Task EnsureCoreWebView2Async(CoreWebView2Environment environment)
Summary: Ensures the core web view2 asynchronous.
Parameters
| Name | Type | Description |
|---|---|---|
environment | CoreWebView2Environment | The environment. |
Returns: Task -- A Task that represents the background initialization process. When the task completes then the Microsoft.Web.WebView2.Wpf.WebView2.CoreWebView2 property will be available for use (i.e. non-null). Note that the control's Microsoft.Web.WebView2.Wpf.WebView2.CoreWebView2InitializationCompleted event will be invoked before the task completes.