Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 910 Bytes

webview2_ensurecorewebview2async_894842988.md

File metadata and controls

26 lines (16 loc) · 910 Bytes
-api-id -api-type
M:Microsoft.UI.Xaml.Controls.WebView2.EnsureCoreWebView2Async
winrt method

Microsoft.UI.Xaml.Controls.WebView2.EnsureCoreWebView2Async

-description

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).

-returns

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.

-remarks

-see-also

-examples