Table of Contents

Class FeedRange

Namespace
Microsoft.Azure.Cosmos
Assembly
Microsoft.Azure.Cosmos.Client.dll

Represents a unit of feed consumption that can be used as unit of parallelism.

public abstract class FeedRange
Inheritance
FeedRange
Inherited Members
Extension Methods

Constructors

FeedRange()

protected FeedRange()

Methods

FromJsonString(string)

Creates a range from a previously obtained string representation.

public static FeedRange FromJsonString(string toStringValue)

Parameters

toStringValue string

A string representation obtained from ToJsonString().

Returns

FeedRange

A FeedRange.

Exceptions

ArgumentException

If the toStringValue does not represent a valid value.

FromPartitionKey(PartitionKey)

Creates a feed range that span only a single PartitionKey value.

public static FeedRange FromPartitionKey(PartitionKey partitionKey)

Parameters

partitionKey PartitionKey

The partition key value to create a feed range from.

Returns

FeedRange

The feed range that spans the partition.

ToJsonString()

Gets a string representation of the current range.

public abstract string ToJsonString()

Returns

string

A string representation of the current token.