Udostępnij przez


FormFile.CopyToAsync(Stream, CancellationToken) Metoda

Definicja

Asynchronicznie kopiuje zawartość przekazanego pliku do strumienia target .

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

Parametry

target
Stream

Strumień do skopiowania zawartości pliku do.

cancellationToken
CancellationToken

Zwraca

Implementuje

Dotyczy