IDocumentClient.UpsertPermissionAsync
Method
Definition
Overloads
| UpsertPermissionAsync(String, Permission, RequestOptions) |
Upserts a permission on a user object as an asychronous operation in the Azure DocumentDB database service. |
| UpsertPermissionAsync(Uri, Permission, RequestOptions) |
Upserts a permission as an asychronous operation in the Azure DocumentDB database service. |
UpsertPermissionAsync(String, Permission, 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.Permission>> UpsertPermissionAsync (string userLink, Microsoft.Azure.Documents.Permission permission, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- userLink
- String
The link of the user to Upsert 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 upserted Permission object.
UpsertPermissionAsync(Uri, Permission, RequestOptions)
Upserts 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>> UpsertPermissionAsync (Uri userUri, Microsoft.Azure.Documents.Permission permission, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- userUri
- Uri
The URI of the user to upsert 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.