IDocumentClient.ReadMediaMetadataAsync(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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}.