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

作为 IBuffer 的 HTTP 请求返回的数据。

方法

Close()

关闭 HttpGetBufferResult 实例并释放分配的资源。

Dispose()

执行与释放或重置非托管资源关联的应用程序定义的任务。

ToString()

返回表示当前 HttpGetBufferResult 对象的字符串。

适用于

另请参阅