Share via


Container.GetPartitionKeyRangesAsync(FeedRange, CancellationToken) Method

Definition

Gets the list of Partition Key Range identifiers for a FeedRange.

public abstract System.Threading.Tasks.Task<System.Collections.Generic.IEnumerable<string>> GetPartitionKeyRangesAsync(Microsoft.Azure.Cosmos.FeedRange feedRange, System.Threading.CancellationToken cancellationToken = default);
abstract member GetPartitionKeyRangesAsync : Microsoft.Azure.Cosmos.FeedRange * System.Threading.CancellationToken -> System.Threading.Tasks.Task<seq<string>>
Public MustOverride Function GetPartitionKeyRangesAsync (feedRange As FeedRange, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IEnumerable(Of String))

Parameters

feedRange
FeedRange

A FeedRange

cancellationToken
CancellationToken

(Optional) CancellationToken representing request cancellation.

Returns

The list of Partition Key Range identifiers affected by a particular FeedRange.

Applies to

See also