WebView2CompositionControl.Source Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

The top-level Uri which the WebView is currently displaying (or will display once initialization of its CoreWebView2 is finished). Generally speaking, getting this property is equivalent to getting the Source property and setting this property (to a different value) is equivalent to calling the Navigate(String) method.

C#
public Uri Source { get; set; }

Property Value

Uri

Implements

Applies to

Продукт Версии
WebView2 .NET 1.0.2957.106, 1.0.3065.39
WebView2 .NET Prerelease 1.0.2646, 1.0.2730, 1.0.2783, 1.0.2839, 1.0.2895, 1.0.2950, 1.0.3079, 1.0.3116