Partilhar via


FormFile.CopyToAsync(Stream, CancellationToken) Método

Definição

Copia de forma assíncrona o conteúdo do arquivo carregado para o target fluxo.

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

Parâmetros

target
Stream

O fluxo para o qual copiar o conteúdo do arquivo.

cancellationToken
CancellationToken

Retornos

Implementações

Aplica-se a