IFormFile.CopyToAsync(Stream, CancellationToken) 方法

定义

将上传的文件的内容异步复制到 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
Public Function CopyToAsync (target As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task

参数

target
Stream

将文件内容复制到的流。

cancellationToken
CancellationToken

返回

适用于