IDocumentClient.ReadAttachmentAsync Method

Definition

Overloads

ReadAttachmentAsync(String, RequestOptions)

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

ReadAttachmentAsync(Uri, RequestOptions)

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

ReadAttachmentAsync(String, RequestOptions)

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

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Attachment>> ReadAttachmentAsync (string attachmentLink, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
attachmentLink
String

The link to the attachment to be read.

options
RequestOptions

(Optional) The RequestOptionsfor this request.

Returns

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

ReadAttachmentAsync(Uri, RequestOptions)

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

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.ResourceResponse<Microsoft.Azure.Documents.Attachment>> ReadAttachmentAsync (Uri attachmentUri, Microsoft.Azure.Documents.Client.RequestOptions options = null);
Parameters
attachmentUri
Uri

A URI to the Attachment resource to be read.

options
RequestOptions

(Optional) The RequestOptions for the request.

Returns

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