ContainerBuilder.WithClientEncryptionPolicy Method

Definition

Overloads

WithClientEncryptionPolicy()

Defines the ClientEncryptionPolicy for Azure Cosmos container. The PolicyFormatVersion will be set to 1. Note: If you need to include partition key or id field paths as part of ClientEncryptionPolicy, please set PolicyFormatVersion to 2.

WithClientEncryptionPolicy(Int32)

Defines the ClientEncryptionPolicy for Azure Cosmos container Note: If you need to include partition key or id field paths as part of ClientEncryptionPolicy, please set PolicyFormatVersion to 2.

WithClientEncryptionPolicy()

Source:
ContainerBuilder.cs

Defines the ClientEncryptionPolicy for Azure Cosmos container. The PolicyFormatVersion will be set to 1. Note: If you need to include partition key or id field paths as part of ClientEncryptionPolicy, please set PolicyFormatVersion to 2.

public Microsoft.Azure.Cosmos.Fluent.ClientEncryptionPolicyDefinition WithClientEncryptionPolicy ();
member this.WithClientEncryptionPolicy : unit -> Microsoft.Azure.Cosmos.Fluent.ClientEncryptionPolicyDefinition
Public Function WithClientEncryptionPolicy () As ClientEncryptionPolicyDefinition

Returns

An instance of ClientEncryptionPolicyDefinition.

Applies to

WithClientEncryptionPolicy(Int32)

Source:
ContainerBuilder.cs

Defines the ClientEncryptionPolicy for Azure Cosmos container Note: If you need to include partition key or id field paths as part of ClientEncryptionPolicy, please set PolicyFormatVersion to 2.

public Microsoft.Azure.Cosmos.Fluent.ClientEncryptionPolicyDefinition WithClientEncryptionPolicy (int policyFormatVersion);
member this.WithClientEncryptionPolicy : int -> Microsoft.Azure.Cosmos.Fluent.ClientEncryptionPolicyDefinition
Public Function WithClientEncryptionPolicy (policyFormatVersion As Integer) As ClientEncryptionPolicyDefinition

Parameters

policyFormatVersion
Int32

Version of the client encryption policy definition. Current supported versions are 1 and 2.

Returns

An instance of ClientEncryptionPolicyDefinition.

Applies to