NotificationMessagesClient.DownloadMediaTo Method

Definition

Overloads

DownloadMediaTo(String, String, CancellationToken)

The DownloadMediaTo(String, String, CancellationToken) operation downloads the specified content, and writes the content to destinationPath.

DownloadMediaTo(String, Stream, CancellationToken)

The DownloadMediaTo(String, Stream, CancellationToken) operation downloads the specified content, and writes the content to destinationStream.

DownloadMediaTo(String, String, CancellationToken)

Source:
NotificationMessagesClient.cs
Source:
NotificationMessagesClient.cs

The DownloadMediaTo(String, String, CancellationToken) operation downloads the specified content, and writes the content to destinationPath.

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

Parameters

mediaContentId
String

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

destinationPath
String

A file path to write the downloaded content to.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

Applies to

DownloadMediaTo(String, Stream, CancellationToken)

Source:
NotificationMessagesClient.cs
Source:
NotificationMessagesClient.cs

The DownloadMediaTo(String, Stream, CancellationToken) operation downloads the specified content, and writes the content to destinationStream.

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

Parameters

mediaContentId
String

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

destinationStream
Stream

A Stream to write the downloaded content to.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

Applies to