你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RequestOptions.IfMatchEtag 属性

定义

获取或设置与 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) 缓存方案。

适用于