IDocumentClient.CreatePermissionAsync
Method
Definition
Overloads
| CreatePermissionAsync(String, Permission, RequestOptions) |
Creates a permission on a user object as an asychronous operation in the Azure DocumentDB database service. |
| CreatePermissionAsync(Uri, Permission, RequestOptions) |
Creates a permission as an asychronous operation in the Azure DocumentDB database service. |
CreatePermissionAsync(String, Permission, RequestOptions)
Creates 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.Permission>> CreatePermissionAsync (string userLink, Microsoft.Azure.Documents.Permission permission, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- userLink
- String
The link of the user to create the permission for. E.g. dbs/db_rid/users/user_rid/
- permission
- Permission
The Permission object.
- options
- RequestOptions
(Optional) The RequestOptionsfor this request.
A task object representing the service response for the asynchronous operation which contains the created Permission object.
CreatePermissionAsync(Uri, Permission, RequestOptions)
Creates a permission as an asychronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Permission>> CreatePermissionAsync (Uri userUri, Microsoft.Azure.Documents.Permission permission, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- userUri
- Uri
The URI of the user to create the permission for.
- permission
- Permission
The Permission object.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
The task object representing the service response for the asynchronous operation.