DocumentClient.ReplaceOfferAsync
Method
Definition
Replaces a Offer in the Azure DocumentDB database service as an asynchronous operation.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Offer>> ReplaceOfferAsync (Microsoft.Azure.Documents.Offer offer);
Parameters
Returns
A System.Threading.Tasks containing a ResourceResponse<TResource> which wraps a Offer containing the updated resource record.
Exceptions
If offer 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 you tried to delete did not exist. |