IDocumentClient.CreateUserAsync
Method
Definition
Overloads
| CreateUserAsync(String, User, RequestOptions) |
Creates a user object as an asychronous operation in the Azure DocumentDB database service. |
| CreateUserAsync(Uri, User, RequestOptions) |
Creates a user as an asychronous operation in the Azure DocumentDB database service. |
CreateUserAsync(String, User, RequestOptions)
Creates 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>> CreateUserAsync (string databaseLink, Microsoft.Azure.Documents.User user, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- databaseLink
- String
The link of the database to create 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 created User object.
CreateUserAsync(Uri, User, RequestOptions)
Creates 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>> CreateUserAsync (Uri databaseUri, Microsoft.Azure.Documents.User user, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- databaseUri
- Uri
The URI of the database to create the user in.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
The task object representing the service response for the asynchronous operation.