AccessCondition クラス

定義

Azure Cosmos DB サービスの操作に使用する一連のアクセス条件を表します。

public sealed class AccessCondition
type AccessCondition = class
Public NotInheritable Class AccessCondition
継承
AccessCondition

次の例は、DocumentClient で AccessCondition を使用する方法を示しています。

// If ETag is current, then this will succeed. Otherwise the request will fail with HTTP 412 Precondition Failure
await client.ReplaceDocumentAsync(
    readCopyOfBook.SelfLink, 
    new Book { Title = "Moby Dick", Price = 14.99 },
    new RequestOptions 
    { 
        AccessCondition = new AccessCondition 
        { 
            Condition = readCopyOfBook.ETag, 
            Type = AccessConditionType.IfMatch 
        } 
     });

コンストラクター

AccessCondition()

Azure Cosmos DB サービスの操作に使用する一連のアクセス条件を表します。

プロパティ

Condition

Azure Cosmos DB サービスの条件の値を取得または設定します。

Type

Azure Cosmos DB サービスの条件の種類を取得または設定します。

適用対象

こちらもご覧ください