你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BlobHttpResponseParsers.GetLeaseDuration(HttpResponseMessage) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 Web 响应中提取租约持续时间。
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
参数
- response
- HttpResponseMessage
Web 响应。
返回
LeaseDuration来自 Web 响应的枚举。
例外
标头包含无法识别的值。
注解
如果相应的标头不存在,则返回 状态 Unspecified 。