-api-id | -api-type |
---|---|
M:Microsoft.UI.Xaml.Controls.WebView2.EnsureCoreWebView2Async |
winrt method |
Explicitly trigger initialization of the control's CoreWebView2.
This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).
A Task that represents the background initialization process. When the task completes then the CoreWebView2 property will be available for use (non-null). Note that the CoreWebView2Initialized event will be invoked before the task completes or on exceptions.