UniqueKeyPolicy Class

Definition

A holder for policy specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.

public sealed class UniqueKeyPolicy : Microsoft.Azure.Documents.JsonSerializable
type UniqueKeyPolicy = class
    inherit JsonSerializable
Public NotInheritable Class UniqueKeyPolicy
Inherits JsonSerializable
Inheritance
System.Object
UniqueKeyPolicy

Constructors

UniqueKeyPolicy()

Initializes a new instance of the UniqueKeyPolicy class for the Azure Cosmos DB service.

Properties

UniqueKeys

Gets or sets collection of UniqueKey that guarantee uniqueness of documents in collection in the Azure Cosmos DB service.

Methods

LoadFrom(JsonReader)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
LoadFrom(JsonReader, JsonSerializerSettings)

Loads the object from the specified JSON reader in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
SaveTo(Stream, SerializationFormattingPolicy)

Saves the object to the specified stream in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
SaveTo(Stream, SerializationFormattingPolicy, JsonSerializerSettings)

Saves the object to the specified stream in the Azure Cosmos DB service.

(Inherited from JsonSerializable)
ToString()

Returns the string representation of the object in the Azure Cosmos DB service.

(Inherited from JsonSerializable)

Applies to