Share via


DockerfileStatement.WriteStatementAsync Method

Definition

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.

Applies to