Condividi tramite


NotificationMessagesClient.DownloadMedia(String, CancellationToken) Method

Definition

The DownloadMedia(String, CancellationToken) downloads the Media payload from a User to Business message asynchronously.

public virtual Azure.Response<System.IO.Stream> DownloadMedia (string mediaContentId, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadMedia : string * System.Threading.CancellationToken -> Azure.Response<System.IO.Stream>
override this.DownloadMedia : string * System.Threading.CancellationToken -> Azure.Response<System.IO.Stream>
Public Overridable Function DownloadMedia (mediaContentId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Stream)

Parameters

mediaContentId
String

The Media Identifier contained in the User to Business message event.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to