WebView2 Constructor

Definition

Initializes a new instance of the WebView2 class.

This documentation applies to WinUI 2 for UWP (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

C#
public WebView2();

Applies to

Product Versions
WinUI 2 2.8-prerelease, 2.8