Share via


CallRecording.DownloadTo Method

Definition

Overloads

DownloadTo(Uri, Stream, ContentTransferOptions, CancellationToken)

The DownloadTo(Uri, Stream, ContentTransferOptions, CancellationToken) operation downloads the specified content using parallel requests, and writes the content to destinationStream.

DownloadTo(Uri, String, ContentTransferOptions, CancellationToken)

The DownloadTo(Uri, String, ContentTransferOptions, CancellationToken) operation downloads the specified content using parallel requests, and writes the content to destinationPath.

DownloadTo(Uri, Stream, ContentTransferOptions, CancellationToken)

Source:
CallRecording.cs
Source:
CallRecording.cs

The DownloadTo(Uri, Stream, ContentTransferOptions, CancellationToken) operation downloads the specified content using parallel requests, and writes the content to destinationStream.

public virtual Azure.Response DownloadTo (Uri sourceLocation, System.IO.Stream destinationStream, Azure.Communication.CallAutomation.ContentTransferOptions transferOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadTo : Uri * System.IO.Stream * Azure.Communication.CallAutomation.ContentTransferOptions * System.Threading.CancellationToken -> Azure.Response
override this.DownloadTo : Uri * System.IO.Stream * Azure.Communication.CallAutomation.ContentTransferOptions * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DownloadTo (sourceLocation As Uri, destinationStream As Stream, Optional transferOptions As ContentTransferOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

sourceLocation
Uri

A Uri with the Recording's content's url location.

destinationStream
Stream

A Stream 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

DownloadTo(Uri, String, ContentTransferOptions, CancellationToken)

Source:
CallRecording.cs
Source:
CallRecording.cs

The DownloadTo(Uri, String, ContentTransferOptions, CancellationToken) operation downloads the specified content using parallel requests, and writes the content to destinationPath.

public virtual Azure.Response DownloadTo (Uri sourceLocation, string destinationPath, Azure.Communication.CallAutomation.ContentTransferOptions transferOptions = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DownloadTo : Uri * string * Azure.Communication.CallAutomation.ContentTransferOptions * System.Threading.CancellationToken -> Azure.Response
override this.DownloadTo : Uri * string * Azure.Communication.CallAutomation.ContentTransferOptions * System.Threading.CancellationToken -> Azure.Response
Public Overridable Function DownloadTo (sourceLocation As Uri, destinationPath As String, Optional transferOptions As ContentTransferOptions = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response

Parameters

sourceLocation
Uri

A Uri with the Recording's content's url location.

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