Condividi tramite


IFormFile.CopyToAsync(Stream, CancellationToken) Metodo

Definizione

Copia in modo asincrono il contenuto del file caricato nel target flusso.

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

Parametri

target
Stream

Flusso in cui copiare il contenuto del file.

cancellationToken
CancellationToken

Restituisce

Si applica a