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);
Parameters
databaseLink
String

The link of the database to create the user in. E.g. dbs/db_rid/

user
User

The User object to create.

options
RequestOptions

(Optional) The RequestOptionsfor this request.

Returns

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);
Parameters
databaseUri
Uri

The URI of the database to create the user in.

user
User

The User object.

options
RequestOptions

(Optional) The RequestOptions for the request.

Returns

The task object representing the service response for the asynchronous operation.