IDocumentClient.ReplaceUserAsync
Method
Definition
Overloads
| ReplaceUserAsync(User, RequestOptions) |
Replaces a User as an asynchronous operation in the Azure DocumentDB database service. |
| ReplaceUserAsync(Uri, User, RequestOptions) |
Replaces a user as an asynchronous operation in the Azure DocumentDB database service. |
ReplaceUserAsync(User, RequestOptions)
Replaces a User as an asynchronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.User>> ReplaceUserAsync (Microsoft.Azure.Documents.User user, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
- options
- RequestOptions
(Optional) The RequestOptionsfor this request.
Returns
A System.Threading.Tasks containing a ResourceResponse<TResource> which wraps a User containing the updated resource record.
ReplaceUserAsync(Uri, User, RequestOptions)
Replaces a user as an asynchronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.User>> ReplaceUserAsync (Uri userUri, Microsoft.Azure.Documents.User user, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
- userUri
- Uri
The URI for the user to be updated.
- user
- User
The updated user.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
Returns
The task object representing the service response for the asynchronous operation.