Condividi tramite


IDocumentClient.ReadMediaMetadataAsync(String) Method

Definition

Retrieves the metadata associated with the specified attachment content (aka media) as an asynchronous operation from the Azure Cosmos DB service.

public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.MediaResponse> ReadMediaMetadataAsync (string mediaLink);
abstract member ReadMediaMetadataAsync : string -> System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.MediaResponse>
Public Function ReadMediaMetadataAsync (mediaLink As String) As Task(Of MediaResponse)

Parameters

mediaLink
String

The link for the media to read metadata for. E.g. /media/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 /media/{mediaId}.

Applies to

See also