WebView.NavigateWithHttpRequestMessage(HttpRequestMessage) 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.
public:
virtual void NavigateWithHttpRequestMessage(HttpRequestMessage ^ requestMessage) = NavigateWithHttpRequestMessage;
void NavigateWithHttpRequestMessage(HttpRequestMessage const& requestMessage);
public void NavigateWithHttpRequestMessage(HttpRequestMessage requestMessage);
function navigateWithHttpRequestMessage(requestMessage)
Public Sub NavigateWithHttpRequestMessage (requestMessage As HttpRequestMessage)
Parameters
- requestMessage
- HttpRequestMessage
The details of the HTTP request.
Windows requirements
App capabilities |
enterpriseCloudSSO
|
Examples
This example shows how to create an HTTP request and use it with this method.
HttpRequestMessage httpRequestMessage = new HttpRequestMessage(
HttpMethod.Post, new Uri("http://www.contoso.com"));
httpRequestMessage.Content = new HttpStringContent("hello, world");
httpRequestMessage.Headers.Append("X-My-Client","true");
myWebView.NavigateWithHttpRequestMessage(httpRequestMessage);
Remarks
This method supports only HttpMethod.Post and HttpMethod.Get for the HttpRequestMessage.Method property value.
Warning
If you add additional headers to this request, such as authentication credentials, remember that those headers will also be included with any subsequent child requests. Use caution to prevent accidental disclosure of confidential or personal information.
If the app possesses the enterpriseCloudSSO
capability,
then web pages hosted inside the WebView control
can use single sign on with Azure Active Directory (AAD) resources.