NotificationMessagesClient.DownloadMedia(String, CancellationToken) 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.
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
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.