Container.GetPartitionKeyRangesAsync(FeedRange, CancellationToken) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- cancellationToken
- CancellationToken
(Optional) CancellationToken representing request cancellation.
Returns
The list of Partition Key Range identifiers affected by a particular FeedRange.