DocumentClient.ReadPartitionKeyRangeFeedAsync
Method
Definition
Overloads
| ReadPartitionKeyRangeFeedAsync(Uri, FeedOptions) |
Reads the feed (sequence) of PartitionKeyRange for a database account from the Azure DocumentDB database service as an asynchronous operation. |
| ReadPartitionKeyRangeFeedAsync(String, FeedOptions) |
Reads the feed (sequence) of PartitionKeyRange for a database account from the Azure DocumentDB database service as an asynchronous operation. |
ReadPartitionKeyRangeFeedAsync(Uri, FeedOptions)
Reads the feed (sequence) of PartitionKeyRange for a database account from the Azure DocumentDB database service as an asynchronous operation.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.FeedResponse<Microsoft.Azure.Documents.PartitionKeyRange>> ReadPartitionKeyRangeFeedAsync (Uri partitionKeyRangesOrCollectionUri, Microsoft.Azure.Documents.Client.FeedOptions options = null);
- partitionKeyRangesOrCollectionUri
- Uri
The Uri for partition key ranges, or owner collection.
- options
- FeedOptions
(Optional) The request options for the request.
A System.Threading.Tasks containing a ResourceResponse<TResource> which wraps a PartitionKeyRange containing the read resource record.
ReadPartitionKeyRangeFeedAsync(String, FeedOptions)
Reads the feed (sequence) of PartitionKeyRange for a database account from the Azure DocumentDB database service as an asynchronous operation.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.FeedResponse<Microsoft.Azure.Documents.PartitionKeyRange>> ReadPartitionKeyRangeFeedAsync (string partitionKeyRangesOrCollectionLink, Microsoft.Azure.Documents.Client.FeedOptions options = null);
- partitionKeyRangesOrCollectionLink
- String
The link of the resources to be read, or owner collection link, SelfLink or AltLink. E.g. /dbs/db_rid/colls/coll_rid/pkranges
- options
- FeedOptions
(Optional) The request options for the request.
A System.Threading.Tasks containing a ResourceResponse<TResource> which wraps a Database containing the read resource record.
This exception can encapsulate many different types of errors. To determine the specific error always look at the StatusCode property. Some common codes you may get when creating a Document are:
| StatusCode | Reason for exception |
|---|---|
| 429 | TooManyRequests - This means you have exceeded the number of request units per second. Consult the DocumentClientException.RetryAfter value to see how long you should wait before retrying this operation. |