Delen via


HttpGetBufferResult Class

Definition

Combines the final buffer result along with the following: the original HTTP request, the resulting HTTP response (if any), an extended error value, and a succeeded indication.

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
Inheritance
Object Platform::Object IInspectable HttpGetBufferResult
Attributes
Implements

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Remarks

The HttpGetBufferResult is the return result from a call to HttpClient TryGetBufferAsync

Properties

ExtendedError

The extended error code for an HTTP request.

RequestMessage

Gets the request message that led to this HttpGetBufferResult.

ResponseMessage

Gets the HTTP response message including headers, the status code, and data.

Succeeded

Gets whether the HTTP request was successful.

Value

The returned data from an HTTP request as an IBuffer.

Methods

Close()

Closes the HttpGetBufferResult instance and releases allocated resources.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

ToString()

Returns a string that represents the current HttpGetBufferResult object.

Applies to

See also