Table of Contents

Method Write

Namespace
DocWright.Formats.Html
Assembly
DocWright.Formats.Html.dll

Write(IDocWrightDocument, Stream, DocumentWriteOptions, IConversionDiagnostics)

Writes the document to the stream.

public void Write(IDocWrightDocument document, Stream output, DocumentWriteOptions options, IConversionDiagnostics diagnostics)

Parameters

document IDocWrightDocument

The document to write.

output Stream

The stream to write to, forward-only.

options DocumentWriteOptions

The write options.

diagnostics IConversionDiagnostics

The diagnostics sink.

Exceptions

ArgumentNullException

A required argument is null.

ArgumentException

document is not a DocWright DOM document.

ResourceLimitExceededException

The output exceeded MaxOutputBytes.

UnsupportedFeatureException

Strict mode was requested and content could not be represented.