WebViewManager.TryGetResponseContent 方法

定义

尝试为给定网络请求提供响应内容。

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

参数

uri
String

请求的 URI

allowFallbackOnHostPage
Boolean

是否回退到主机页。

statusCode
Int32

响应的状态代码。

statusMessage
String

响应状态消息。

content
Stream

响应内容

headers
IDictionary<String,String>

响应标头

返回

true 如果可以提供响应,则为 ; false 否则。

适用于