共用方式為


UniqueKey.Paths Property

Definition

Gets the paths, a set of which must be unique for each document in the Azure Cosmos DB service.

public System.Collections.ObjectModel.Collection<string> Paths { get; }
member this.Paths : System.Collections.ObjectModel.Collection<string>
Public ReadOnly Property Paths As Collection(Of String)

Property Value

The paths to enforce uniqueness on. Each path is a rooted path of the unique property in the document, such as "/name/first".

Examples

uniqueKey.Paths = new Collection<string> { "/name/first", "/name/last" };

Applies to