IDocumentClient.ReadPermissionAsync Method

Definition

Overloads

ReadPermissionAsync(String, RequestOptions)

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

ReadPermissionAsync(Uri, RequestOptions)

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

ReadPermissionAsync(String, RequestOptions)

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

The link for the Permission resource to be read.

options
RequestOptions

(Optional) The RequestOptionsfor this request.

Returns

A System.Threading.Tasks containing a ResourceResponse<TResource> which wraps a Permission containing the read resource record.

ReadPermissionAsync(Uri, RequestOptions)

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

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Permission>> ReadPermissionAsync (Uri permissionUri, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
permissionUri
Uri

A URI to the Permission resource to be read.

options
RequestOptions

(Optional) The RequestOptions for the request.

Returns

A System.Threading.Tasks containing a ResourceResponse<TResource> which wraps a Permission containing the read resource record.