WebView.Navigate Method
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.
Overloads
Navigate(String) |
Loads the HTML content at the specified Uniform Resource Identifier (URI). |
Navigate(Uri) |
Loads the HTML content at the specified Uniform Resource Identifier (URI). |
Navigate(Uri, HttpMethod, String, IEnumerable<KeyValuePair<String,String>>) |
Navigates the web view with the URI with a HTTP request and HTTP headers. |
Navigate(String)
Loads the HTML content at the specified Uniform Resource Identifier (URI).
public void Navigate(string source);
abstract member Navigate : string -> unit
override this.Navigate : string -> unit
Public Sub Navigate (source As String)
Parameters
- source
- String
The Uniform Resource Identifier (URI) to load.
Implements
Applies to
Navigate(Uri)
Loads the HTML content at the specified Uniform Resource Identifier (URI).
public void Navigate(Uri source);
abstract member Navigate : Uri -> unit
override this.Navigate : Uri -> unit
Public Sub Navigate (source As Uri)
Parameters
- source
- Uri
The Uniform Resource Identifier (URI) to load.
Implements
See also
Applies to
Navigate(Uri, HttpMethod, String, IEnumerable<KeyValuePair<String,String>>)
Navigates the web view with the URI with a HTTP request and HTTP headers.
public void Navigate(Uri requestUri, System.Net.Http.HttpMethod httpMethod, string content = default, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>> headers = default);
abstract member Navigate : Uri * System.Net.Http.HttpMethod * string * seq<System.Collections.Generic.KeyValuePair<string, string>> -> unit
override this.Navigate : Uri * System.Net.Http.HttpMethod * string * seq<System.Collections.Generic.KeyValuePair<string, string>> -> unit
Public Sub Navigate (requestUri As Uri, httpMethod As HttpMethod, Optional content As String = Nothing, Optional headers As IEnumerable(Of KeyValuePair(Of String, String)) = Nothing)
Parameters
- requestUri
- Uri
The Uniform Resource Identifier (URI) to send the request.
- httpMethod
- HttpMethod
The HTTP method of the request.
- content
- String
Optional content to send with the request.
- headers
- IEnumerable<KeyValuePair<String,String>>
Optional headers to send with the request.
Implements
Remarks
This method only supports Get and Post for the httpMethod
parameter.
See also
- <xref:Windows.Web.UI.Interop.WebViewControl.NavigateWithHttpRequestMessage(Windows.Web.Http.HttpRequestMessage)>