Bagikan melalui


IFormFile.CopyToAsync(Stream, CancellationToken) Metode

Definisi

Menyalin konten file yang diunggah secara asinkron ke target aliran.

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

Parameter

target
Stream

Aliran untuk menyalin konten file.

cancellationToken
CancellationToken

Mengembalikan

Berlaku untuk