次の方法で共有


CallingServerClient.DownloadToAsync メソッド

定義

オーバーロード

DownloadToAsync(Uri, Stream, ContentTransferOptions, CancellationToken)

操作は DownloadToAsync(Uri, Stream, ContentTransferOptions, CancellationToken) 、並列要求を使用して指定されたコンテンツをダウンロードし、 にコンテンツを destinationStream書き込みます。

DownloadToAsync(Uri, String, ContentTransferOptions, CancellationToken)

操作は DownloadToAsync(Uri, String, ContentTransferOptions, CancellationToken) 、並列要求を使用して指定されたコンテンツをダウンロードし、 にコンテンツを destinationPath書き込みます。

DownloadToAsync(Uri, Stream, ContentTransferOptions, CancellationToken)

Source:
CallingServerClient.cs

操作は DownloadToAsync(Uri, Stream, ContentTransferOptions, CancellationToken) 、並列要求を使用して指定されたコンテンツをダウンロードし、 にコンテンツを destinationStream書き込みます。

public virtual System.Threading.Tasks.Task<Azure.Response> DownloadToAsync (Uri sourceEndpoint, System.IO.Stream destinationStream, Azure.Communication.CallingServer.ContentTransferOptions transferOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadToAsync : Uri * System.IO.Stream * Azure.Communication.CallingServer.ContentTransferOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DownloadToAsync : Uri * System.IO.Stream * Azure.Communication.CallingServer.ContentTransferOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DownloadToAsync (sourceEndpoint As Uri, destinationStream As Stream, Optional transferOptions As ContentTransferOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

パラメーター

sourceEndpoint
Uri

Uriレコーディングのコンテンツの URL の場所を含む 。

destinationStream
Stream

Streamダウンロードしたコンテンツを書き込む 。

transferOptions
ContentTransferOptions

並列転送動作を構成する場合は省略可能 ContentTransferOptions です。

cancellationToken
CancellationToken

操作を取り消す必要がある通知を伝達する場合は省略可能 CancellationToken です。

戻り値

Response操作を記述する 。

注釈

RequestFailedExceptionエラーが発生すると、 がスローされます。

適用対象

DownloadToAsync(Uri, String, ContentTransferOptions, CancellationToken)

Source:
CallingServerClient.cs

操作は DownloadToAsync(Uri, String, ContentTransferOptions, CancellationToken) 、並列要求を使用して指定されたコンテンツをダウンロードし、 にコンテンツを destinationPath書き込みます。

public virtual System.Threading.Tasks.Task<Azure.Response> DownloadToAsync (Uri sourceEndpoint, string destinationPath, Azure.Communication.CallingServer.ContentTransferOptions transferOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadToAsync : Uri * string * Azure.Communication.CallingServer.ContentTransferOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DownloadToAsync : Uri * string * Azure.Communication.CallingServer.ContentTransferOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DownloadToAsync (sourceEndpoint As Uri, destinationPath As String, Optional transferOptions As ContentTransferOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

パラメーター

sourceEndpoint
Uri

Uriレコーディングのコンテンツの URL の場所を含む 。

destinationPath
String

ダウンロードしたコンテンツを書き込むファイル パス。

transferOptions
ContentTransferOptions

並列転送動作を構成する場合は省略可能 ContentTransferOptions です。

cancellationToken
CancellationToken

操作を取り消す必要がある通知を伝達する場合は省略可能 CancellationToken です。

戻り値

Response操作を記述する 。

注釈

RequestFailedExceptionエラーが発生すると、 がスローされます。

適用対象