IDocumentClient.UpsertUserAsync
Method
Definition
Overloads
| UpsertUserAsync(String, User, RequestOptions) |
Upserts a permission on a user object as an asychronous operation in the Azure DocumentDB database service. |
| UpsertUserAsync(Uri, User, RequestOptions) |
Upserts a user as an asychronous operation in the Azure DocumentDB database service. |
UpsertUserAsync(String, User, RequestOptions)
Upserts a permission on a user object as an asychronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.User>> UpsertUserAsync (string databaseLink, Microsoft.Azure.Documents.User user, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- databaseLink
- String
The link of the database to upsert the user in. E.g. dbs/db_rid/
- options
- RequestOptions
(Optional) The RequestOptionsfor this request.
A task object representing the service response for the asynchronous operation which contains the upserted User object.
UpsertUserAsync(Uri, User, RequestOptions)
Upserts a user as an asychronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.User>> UpsertUserAsync (Uri databaseUri, Microsoft.Azure.Documents.User user, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- databaseUri
- Uri
The URI of the database to upsert the user in.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
The task object representing the service response for the asynchronous operation.