IDocumentClient.DeletePermissionAsync Method

Definition

Overloads

DeletePermissionAsync(String, RequestOptions)

Delete a Permission as an asynchronous operation in the Azure DocumentDB database service.

DeletePermissionAsync(Uri, RequestOptions)

Delete a permission as an asynchronous operation in the Azure DocumentDB database service.

DeletePermissionAsync(String, RequestOptions)

Delete 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>> DeletePermissionAsync (string permissionLink, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
permissionLink
String

The link of the Permission to delete. E.g. dbs/db_rid/users/user_rid/permissions/permission_rid/

options
RequestOptions

(Optional) The RequestOptionsfor this request.

Returns

A System.Threading.Tasks containing a ResourceResponse<TResource> which will contain information about the request issued.

DeletePermissionAsync(Uri, RequestOptions)

Delete 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>> DeletePermissionAsync (Uri permissionUri, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
permissionUri
Uri

The URI of the permission to delete.

options
RequestOptions

(Optional) The RequestOptions for the request.

Returns

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