IncomingFile.SaveAsAsync(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.
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.