ResponseInformation ResponseInformation ResponseInformation ResponseInformation Class

Definition

Represents data that is returned by a server response.

public : sealed class ResponseInformation : IResponseInformation
public sealed class ResponseInformation : IResponseInformation
Public NotInheritable Class ResponseInformation Implements IResponseInformation
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
Capabilities
internetClientServer privateNetworkClientServer internetClient

Properties

ActualUri ActualUri ActualUri ActualUri

Gets the URI that contains the requested data.

public : Uri ActualUri { get; }
public Uri ActualUri { get; }
Public ReadOnly Property ActualUri As Uri
var uri = responseInformation.actualUri;
Value
Uri Uri Uri Uri

The URI that contains the requested data.

Remarks

If a request sent by an operation never gets redirected, the value of this property is the same as the URI specified in the operation constructor. If a request gets redirected, this property contains the URI that returned the requested data.

Headers Headers Headers Headers

Gets all response headers sent by the server.

public : IMapView<Platform::String, Platform::String> Headers { get; }
public IReadOnlyDictionary<string, string> Headers { get; }
Public ReadOnly Property Headers As IReadOnlyDictionary<string, string>
var iReadOnlyDictionary = responseInformation.headers;
Value
IMapView<Platform::String, Platform::String> IReadOnlyDictionary<string, string> IReadOnlyDictionary<string, string> IReadOnlyDictionary<string, string>

Contains all response headers sent by the server.

IsResumable IsResumable IsResumable IsResumable

Gets a value that specifies whether the download is resumable.

public : Platform::Boolean IsResumable { get; }
public bool IsResumable { get; }
Public ReadOnly Property IsResumable As bool
var bool = responseInformation.isResumable;
Value
Platform::Boolean bool bool bool

This property returns true if a download is resumable; otherwise false is returned.

StatusCode StatusCode StatusCode StatusCode

Gets the status code returned by the server.

public : unsigned int StatusCode { get; }
public uint StatusCode { get; }
Public ReadOnly Property StatusCode As uint
var uint = responseInformation.statusCode;
Value
unsigned int uint uint uint

The status code returned by the server.

See Also