ChangeFeedOptions.PartitionKey Property

Definition

Gets or sets the partition key for the current request in the Azure Cosmos DB service.

public Microsoft.Azure.Documents.PartitionKey PartitionKey { get; set; }
member this.PartitionKey : Microsoft.Azure.Documents.PartitionKey with get, set
Public Property PartitionKey As PartitionKey

Property Value

Examples

var options = new ChangeFeedOptions() { PartitionKey = new PartitionKey("c7580115-8f46-4ac4-a0c7-22eae9aaabf1"), StartFromBeginning = true };

Remarks

PartitionKey cannot be specified along with PartitionKeyRangeId.

Applies to