HtmlWriter(TextWriter, Boolean) Constructor

Initialize a new instance of the HtmlWriter class.

Definition

Namespace: MimeKit.Text
Assembly: MimeKit.Core (in MimeKit.Core.dll) Version: 5.0.0
C#
public HtmlWriter(
	TextWriter output,
	bool leaveOpen = false
)

Parameters

output  TextWriter
The output text writer.
leaveOpen  Boolean  (Optional)
if the output should be left open when this HtmlWriter is disposed; otherwise, .

Remarks

Initializes a new instance of the HtmlWriter class using the specified text writer, optionally leaving the text writer open.

Exceptions

ArgumentNullException output is .

See Also