Compartir a través de


WebView2.Source Property

Definition

The Source property is the URI of the top level document of the WebView2. Setting the Source is equivalent to calling Navigate(String). Setting the Source will trigger initialization of the CoreWebView2, if not already initialized. The default value of Source is null, indicating that the CoreWebView2 is not yet initialized.

[System.ComponentModel.Browsable(true)]
public Uri Source { get; set; }
[<System.ComponentModel.Browsable(true)>]
member this.Source : Uri with get, set
Public Property Source As Uri

Property Value

Uri
Attributes

Exceptions

Specified value is not an absolute Uri.

Specified value is null and the control is initialized.

Applies to

See also