DocumentClient.ReadMediaMetadataAsync
Method
Definition
Retrieves the metadata associated with the specified attachment content (aka media) as an asynchronous operation from the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.MediaResponse> ReadMediaMetadataAsync (string mediaLink);
Parameters
- mediaLink
- String
The link for the media to read metadata for. 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}.