Share via


ClientEncryptionPolicy Constructors

Definition

Overloads

ClientEncryptionPolicy(IEnumerable<ClientEncryptionIncludedPath>)

Initializes a new instance of the ClientEncryptionPolicy class. 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.

ClientEncryptionPolicy(IEnumerable<ClientEncryptionIncludedPath>, Int32)

Initializes a new instance of the ClientEncryptionPolicy class. Note: If you need to include partition key or id field paths as part of ClientEncryptionPolicy, please set PolicyFormatVersion to 2.

ClientEncryptionPolicy(IEnumerable<ClientEncryptionIncludedPath>)

Source:
ClientEncryptionPolicy.cs

Initializes a new instance of the ClientEncryptionPolicy class. 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 ClientEncryptionPolicy (System.Collections.Generic.IEnumerable<Microsoft.Azure.Cosmos.ClientEncryptionIncludedPath> includedPaths);
new Microsoft.Azure.Cosmos.ClientEncryptionPolicy : seq<Microsoft.Azure.Cosmos.ClientEncryptionIncludedPath> -> Microsoft.Azure.Cosmos.ClientEncryptionPolicy
Public Sub New (includedPaths As IEnumerable(Of ClientEncryptionIncludedPath))

Parameters

includedPaths
IEnumerable<ClientEncryptionIncludedPath>

List of paths to include in the policy definition.

Applies to

ClientEncryptionPolicy(IEnumerable<ClientEncryptionIncludedPath>, Int32)

Source:
ClientEncryptionPolicy.cs

Initializes a new instance of the ClientEncryptionPolicy class. Note: If you need to include partition key or id field paths as part of ClientEncryptionPolicy, please set PolicyFormatVersion to 2.

public ClientEncryptionPolicy (System.Collections.Generic.IEnumerable<Microsoft.Azure.Cosmos.ClientEncryptionIncludedPath> includedPaths, int policyFormatVersion);
new Microsoft.Azure.Cosmos.ClientEncryptionPolicy : seq<Microsoft.Azure.Cosmos.ClientEncryptionIncludedPath> * int -> Microsoft.Azure.Cosmos.ClientEncryptionPolicy
Public Sub New (includedPaths As IEnumerable(Of ClientEncryptionIncludedPath), policyFormatVersion As Integer)

Parameters

includedPaths
IEnumerable<ClientEncryptionIncludedPath>

List of paths to include in the policy definition.

policyFormatVersion
Int32

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

Applies to