Udostępnij za pośrednictwem


BlobHttpResponseParsers.GetLeaseStatus(HttpResponseMessage) Method

Definition

Extracts the lease status from a web response.

public static Microsoft.Azure.Storage.Blob.LeaseStatus GetLeaseStatus (System.Net.Http.HttpResponseMessage response);
static member GetLeaseStatus : System.Net.Http.HttpResponseMessage -> Microsoft.Azure.Storage.Blob.LeaseStatus
Public Shared Function GetLeaseStatus (response As HttpResponseMessage) As LeaseStatus

Parameters

response
HttpResponseMessage

The web response.

Returns

A LeaseStatus enumeration from the web response.

Exceptions

The header contains an unrecognized value.

Remarks

If the appropriate header is not present, a status of Unspecified is returned.

Applies to