DocumentClient.UpdateMediaAsync
Method
Definition
Replaces the specified media's content as an asynchronous operation in the Azure DocumentDB database service.
public System.Threading.Tasks.Task<Microsoft.Azure.Documents.Client.MediaResponse> UpdateMediaAsync (string mediaLink, System.IO.Stream mediaStream, Microsoft.Azure.Documents.Client.MediaOptions options = null);
Parameters
- mediaLink
- String
The link for the media to be updated. /medias/media_rid
- options
- MediaOptions
The MediaOptions for the request.
Returns
The task object representing the service response for the asynchronous operation.
Exceptions
If either mediaLink or mediaStream is not set.
If mediaLink is not in the form of /medias/{mediaId}.