FileBufferingWriteStream.DrainBufferAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DrainBufferAsync(PipeWriter, CancellationToken) |
Drains buffered content to |
DrainBufferAsync(Stream, CancellationToken) |
Drains buffered content to |
DrainBufferAsync(PipeWriter, CancellationToken)
- Source:
- FileBufferingWriteStream.cs
Drains buffered content to 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
Parameters
- destination
- PipeWriter
The PipeWriter to drain buffered contents to.
- cancellationToken
- CancellationToken
The CancellationToken.
Returns
A Task that represents the asynchronous drain operation.
Applies to
DrainBufferAsync(Stream, CancellationToken)
- Source:
- FileBufferingWriteStream.cs
Drains buffered content to 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
Parameters
- cancellationToken
- CancellationToken
The CancellationToken.
Returns
A Task that represents the asynchronous drain operation.