Udostępnij przez


WebViewManager.TryGetResponseContent Metoda

Definicja

Próbuje podać zawartość odpowiedzi dla danego żądania sieciowego.

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

Parametry

uri
String

Identyfikator URI żądania

allowFallbackOnHostPage
Boolean

Niezależnie od tego, czy chcesz wrócić do strony hosta.

statusCode
Int32

Kod stanu odpowiedzi.

statusMessage
String

Komunikat o stanie odpowiedzi.

content
Stream

Zawartość odpowiedzi

headers
IDictionary<String,String>

Nagłówki odpowiedzi

Zwraca

true jeśli można podać odpowiedź; false Inaczej.

Dotyczy