DockerfileStatement.WriteStatementAsync 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.
Writes the statement to the specified writer.
public abstract System.Threading.Tasks.Task WriteStatementAsync(System.IO.StreamWriter writer, System.Threading.CancellationToken cancellationToken = default);
abstract member WriteStatementAsync : System.IO.StreamWriter * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function WriteStatementAsync (writer As StreamWriter, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- writer
- StreamWriter
The writer to write to.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
A task representing the asynchronous write operation.