CallRecording.DownloadToAsync 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
DownloadToAsync(Uri, Stream, ContentTransferOptions, CancellationToken) |
The DownloadToAsync(Uri, Stream, ContentTransferOptions, CancellationToken)
operation downloads the specified content using parallel requests,
and writes the content to |
DownloadToAsync(Uri, String, ContentTransferOptions, CancellationToken) |
The DownloadToAsync(Uri, String, ContentTransferOptions, CancellationToken)
operation downloads the specified content using parallel requests,
and writes the content to |
DownloadToAsync(Uri, Stream, ContentTransferOptions, CancellationToken)
- Source:
- CallRecording.cs
- Source:
- CallRecording.cs
The DownloadToAsync(Uri, Stream, ContentTransferOptions, CancellationToken)
operation downloads the specified content using parallel requests,
and writes the content to destinationStream
.
public virtual System.Threading.Tasks.Task<Azure.Response> DownloadToAsync (Uri sourceLocation, System.IO.Stream destinationStream, Azure.Communication.CallAutomation.ContentTransferOptions transferOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadToAsync : Uri * System.IO.Stream * Azure.Communication.CallAutomation.ContentTransferOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DownloadToAsync : Uri * System.IO.Stream * Azure.Communication.CallAutomation.ContentTransferOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DownloadToAsync (sourceLocation As Uri, destinationStream As Stream, Optional transferOptions As ContentTransferOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- transferOptions
- ContentTransferOptions
Optional ContentTransferOptions to configure parallel transfer behavior.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be canceled.
Returns
A Response describing the operation.
Remarks
A RequestFailedException will be thrown if a failure occurs.
Applies to
DownloadToAsync(Uri, String, ContentTransferOptions, CancellationToken)
- Source:
- CallRecording.cs
- Source:
- CallRecording.cs
The DownloadToAsync(Uri, String, ContentTransferOptions, CancellationToken)
operation downloads the specified content using parallel requests,
and writes the content to destinationPath
.
public virtual System.Threading.Tasks.Task<Azure.Response> DownloadToAsync (Uri sourceLocation, string destinationPath, Azure.Communication.CallAutomation.ContentTransferOptions transferOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadToAsync : Uri * string * Azure.Communication.CallAutomation.ContentTransferOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.DownloadToAsync : Uri * string * Azure.Communication.CallAutomation.ContentTransferOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function DownloadToAsync (sourceLocation As Uri, destinationPath As String, Optional transferOptions As ContentTransferOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)
Parameters
- destinationPath
- String
A file path to write the downloaded content to.
- transferOptions
- ContentTransferOptions
Optional ContentTransferOptions to configure parallel transfer behavior.
- cancellationToken
- CancellationToken
Optional CancellationToken to propagate notifications that the operation should be canceled.
Returns
A Response describing the operation.
Remarks
A RequestFailedException will be thrown if a failure occurs.
Applies to
Azure SDK for .NET