你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
RequestOptions.IfMatchEtag 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置与 Azure Cosmos DB 服务中的请求关联的If-Match (ETag) 。
public string IfMatchEtag { get; set; }
member this.IfMatchEtag : string with get, set
Public Property IfMatchEtag As String
属性值
注解
最常与 的 Delete* 和 Replace* 方法 Container 一起使用,例如 ReplaceItemAsync<T>(T, String, Nullable<PartitionKey>, ItemRequestOptions, CancellationToken) ,但可以与其他方法一起使用,例如 ReadItemAsync<T>(String, PartitionKey, ItemRequestOptions, CancellationToken) 缓存方案。