Language

IncomingFile.SaveAsAsync(String, CancellationToken) Method

Definition

Stream the bytes straight to a local file path, so saving a large file never materializes it in memory.

public System.Threading.Tasks.Task SaveAsAsync(string path, System.Threading.CancellationToken cancellationToken = default);
member this.SaveAsAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function SaveAsAsync (path As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

path
String

Destination file path.

cancellationToken
CancellationToken

A token to cancel the download or write.

Returns

Applies to