Share via


WebViewManager.TryGetResponseContent Method

Definition

Tries to provide the response content for a given network request.

protected bool TryGetResponseContent (string uri, bool allowFallbackOnHostPage, out int statusCode, out string statusMessage, out System.IO.Stream content, out System.Collections.Generic.IDictionary<string,string> headers);
member this.TryGetResponseContent : string * bool * int * string * Stream * IDictionary -> bool
Protected Function TryGetResponseContent (uri As String, allowFallbackOnHostPage As Boolean, ByRef statusCode As Integer, ByRef statusMessage As String, ByRef content As Stream, ByRef headers As IDictionary(Of String, String)) As Boolean

Parameters

uri
String

The uri of the request

allowFallbackOnHostPage
Boolean

Whether or not to fallback to the host page.

statusCode
Int32

The status code of the response.

statusMessage
String

The response status message.

content
Stream

The response content

headers
IDictionary<String,String>

The response headers

Returns

true if the response can be provided; false otherwise.

Applies to