FileBufferingWriteStream.DrainBufferAsync 方法

定义

重载

DrainBufferAsync(PipeWriter, CancellationToken)

将缓冲内容清空到 destination

DrainBufferAsync(Stream, CancellationToken)

将缓冲内容清空到 destination

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

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

参数

destination
Stream

Stream 将缓冲内容排出到的 。

cancellationToken
CancellationToken

CancellationToken

返回

一个 Task ,表示异步排出操作。

适用于