IDocumentClient.ReplacePermissionAsync
Method
Definition
Overloads
| ReplacePermissionAsync(Permission, RequestOptions) |
Replaces a Permission as an asynchronous operation in the Azure DocumentDB database service. |
| ReplacePermissionAsync(Uri, Permission, RequestOptions) |
Replaces a permission as an asynchronous operation in the Azure DocumentDB database service. |
ReplacePermissionAsync(Permission, RequestOptions)
Replaces a Permission as an asynchronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Permission>> ReplacePermissionAsync (Microsoft.Azure.Documents.Permission permission, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- permission
- Permission
The updated Permission to replace the existing resource with.
- options
- RequestOptions
(Optional) The RequestOptionsfor this request.
A System.Threading.Tasks containing a ResourceResponse<TResource> which wraps a Permission containing the updated resource record.
ReplacePermissionAsync(Uri, Permission, RequestOptions)
Replaces a permission as an asynchronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Permission>> ReplacePermissionAsync (Uri permissionUri, Microsoft.Azure.Documents.Permission permission, Microsoft.Azure.Documents.Client.RequestOptions options = null);
- permissionUri
- Uri
The URI for the permission to be updated.
- permission
- Permission
The updated permission.
- options
- RequestOptions
(Optional) The RequestOptions for the request.
The task object representing the service response for the asynchronous operation.