FileBufferingWriteStream.DrainBufferAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
DrainBufferAsync(PipeWriter, CancellationToken) |
将缓冲内容清空到 |
DrainBufferAsync(Stream, CancellationToken) |
将缓冲内容清空到 |
DrainBufferAsync(PipeWriter, CancellationToken)
- Source:
- FileBufferingWriteStream.cs
将缓冲内容清空到 destination
。
public System.Threading.Tasks.Task DrainBufferAsync (System.IO.Pipelines.PipeWriter destination, System.Threading.CancellationToken cancellationToken = default);
member this.DrainBufferAsync : System.IO.Pipelines.PipeWriter * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DrainBufferAsync (destination As PipeWriter, Optional cancellationToken As CancellationToken = Nothing) As Task
参数
- destination
- PipeWriter
要 PipeWriter 将缓冲内容排出到的 。
- cancellationToken
- CancellationToken
返回
一个 Task ,表示异步排出操作。
适用于
DrainBufferAsync(Stream, CancellationToken)
- Source:
- FileBufferingWriteStream.cs
将缓冲内容清空到 destination
。
public System.Threading.Tasks.Task DrainBufferAsync (System.IO.Stream destination, System.Threading.CancellationToken cancellationToken = default);
member this.DrainBufferAsync : System.IO.Stream * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function DrainBufferAsync (destination As Stream, Optional cancellationToken As CancellationToken = Nothing) As Task
参数
- cancellationToken
- CancellationToken
返回
一个 Task ,表示异步排出操作。