WebView2.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 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
- Attributes
Exceptions
Specified value is not an absolute Uri.
Specified value is null
and the control is initialized.