File. Copy ToAsync(Stream, CancellationToken) Method
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.
Asynchronously copies the contents of the uploaded file to the
public System.Threading.Tasks.Task CopyToAsync (System.IO.Stream target, System.Threading.CancellationToken cancellationToken = default);
abstract member CopyToAsync : System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CopyToAsync (target As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task
The stream to copy the file contents to.