HttpGetBufferResult 類別

定義

結合最終緩衝區結果與下列專案:原始 HTTP 要求、產生的 HTTP 回應 (如果有任何) 、擴充錯誤值,以及成功的指示。

public ref class HttpGetBufferResult sealed : IClosable, IStringable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 524288)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class HttpGetBufferResult final : IClosable, IStringable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 524288)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class HttpGetBufferResult : System.IDisposable, IStringable
Public NotInheritable Class HttpGetBufferResult
Implements IDisposable, IStringable
繼承
Object Platform::Object IInspectable HttpGetBufferResult
屬性
實作

Windows 需求

裝置系列
Windows 10, version 1903 (已於 10.0.18362.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v8.0 引進)

備註

HttpGetBufferResult 是從對HttpClientTryGetBufferAsync的呼叫傳回結果

屬性

ExtendedError

HTTP 要求的擴充錯誤碼。

RequestMessage

取得導致這個 HttpGetBufferResult的要求訊息。

ResponseMessage

取得 HTTP 回應訊息,包括標頭、狀態碼和資料。

Succeeded

取得 HTTP 要求是否成功。

Value

從 HTTP 要求傳回的資料做為 IBuffer

方法

Close()

關閉 HttpGetBufferResult 實例,並釋放已配置的資源。

Dispose()

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

ToString()

會傳回代表目前 HttpGetBufferResult 物件的字串。

適用於

另請參閱