BlobHttpResponseParsers.GetLeaseDuration(HttpResponseMessage) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Extracts the lease duration from a web response.
public static Microsoft.Azure.Storage.Blob.LeaseDuration GetLeaseDuration (System.Net.Http.HttpResponseMessage response);
static member GetLeaseDuration : System.Net.Http.HttpResponseMessage -> Microsoft.Azure.Storage.Blob.LeaseDuration
Public Shared Function GetLeaseDuration (response As HttpResponseMessage) As LeaseDuration
Parameters
- response
- HttpResponseMessage
The web response.
Returns
A LeaseDuration 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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.