DockerfileStatement Methods
ClassMethods1 member
Represents a statement that can be written to a Dockerfile.
WriteStatementAsync(StreamWriter, CancellationToken)Section titled WriteStatementAsync(StreamWriter, CancellationToken)abstractTask Writes the statement to the specified writer.
public abstract class DockerfileStatement{ public abstract Task WriteStatementAsync( StreamWriter writer, CancellationToken cancellationToken = default(CancellationToken)) { // ... }}Parameters
writerStreamWriterThe writer to write to.cancellationTokenCancellationTokenoptionalA cancellation token.Returns
TaskA task representing the asynchronous write operation.