DocumentClient.ReadConflictFeedAsync
Method
Definition
Overloads
| ReadConflictFeedAsync(String, FeedOptions) |
Reads the feed (sequence) of Conflict for a collection from the Azure DocumentDB database service as an asynchronous operation. |
| ReadConflictFeedAsync(Uri, FeedOptions) |
Reads the feed (sequence) of conflicts for a collection as an asynchronous operation from the Azure DocumentDB database service. |
ReadConflictFeedAsync(String, FeedOptions)
Reads the feed (sequence) of Conflict for a collection from the Azure DocumentDB database service as an asynchronous operation.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.FeedResponse<Microsoft.Azure.Documents.Conflict>> ReadConflictFeedAsync (string conflictsLink, Microsoft.Azure.Documents.Client.FeedOptions options = null);
- conflictsLink
- String
The SelfLink of the resources to be read. E.g. /dbs/db_rid/colls/coll_rid/conflicts/
- options
- FeedOptions
(Optional) The request options for the request.
A System.Threading.Tasks containing a ResourceResponse<TResource> which wraps a Conflict containing the read resource record.
If conflictsLink is not set.
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 |
|---|---|
| 404 | NotFound - This means the resource feed you tried to read did not exist. Check the parent rids are correct. |
| 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. |
ReadConflictFeedAsync(Uri, FeedOptions)
Reads the feed (sequence) of conflicts for a collection as an asynchronous operation from the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.FeedResponse<Microsoft.Azure.Documents.Conflict>> ReadConflictFeedAsync (Uri conflictsUri, Microsoft.Azure.Documents.Client.FeedOptions options = null);
- conflictsUri
- Uri
the URI for the conflicts.
- options
- FeedOptions
The request options for the request.
The task object representing the service response for the asynchronous operation.