FormFile.CopyToAsync(Stream, CancellationToken) Method

Definition

Asynchronously copies the contents of the uploaded file to the target stream.

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
override this.CopyToAsync : System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function CopyToAsync (target As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

target
Stream

The stream to copy the file contents to.

cancellationToken
CancellationToken

Returns

Implements

Applies to