Delen via


RangePartitionResolver<T>.ResolveForRead(Object) Method

Definition

Given a partition key, returns a list of collection links to read from using the range partition map in the Azure Cosmos DB service.

public virtual System.Collections.Generic.IEnumerable<string> ResolveForRead (object partitionKey);
abstract member ResolveForRead : obj -> seq<string>
override this.ResolveForRead : obj -> seq<string>
Public Overridable Function ResolveForRead (partitionKey As Object) As IEnumerable(Of String)

Parameters

partitionKey
Object

The partition key used to determine the target collections for query

Returns

The list of target collection links.

Implements

Exceptions

Thrown if the partitionKey is an invalid type.

Remarks

The partitionKey must be an instance of T, Range<T> or an IEnumerable<T>."/>. This method returns all the collections corresponding to the ranges that intersect with the specified partitionKey.

Applies to