IDocumentClient.ReadMediaAsync Method

Definition

Retrieves the specified attachment content (aka media) in the Azure DocumentDB database service.

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.MediaResponse> ReadMediaAsync (string mediaLink);
Parameters
mediaLink
String

The link for the media to read. E.g. /medias/media_rid

Returns

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

Exceptions

If mediaLink is not set.

If mediaLink is not in the form of /medias/{mediaId}.