NotificationMessagesClient.DownloadMediaTo 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.
Overloads
DownloadMediaTo(String, String, CancellationToken) |
The DownloadMediaTo(String, String, CancellationToken) operation downloads the
specified content, and writes the content to |
DownloadMediaTo(String, Stream, CancellationToken) |
The DownloadMediaTo(String, Stream, CancellationToken) operation downloads the
specified content, and writes the content to |
DownloadMediaTo(String, String, CancellationToken)
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)
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.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
The server returned an error. See Message for details returned from the server.
Applies to
Azure SDK for .NET