Click or drag to resize
MimeKit

HtmlWriter(Stream, Encoding, Boolean) Constructor

Initialize a new instance of the HtmlWriter class.

Namespace: MimeKit.Text
Assembly: MimeKit (in MimeKit.dll) Version: 4.12.0
Syntax
C#
public HtmlWriter(
	Stream stream,
	Encoding encoding,
	bool leaveOpen = false
)

Parameters

stream  Stream
The output stream.
encoding  Encoding
The encoding to use for the output.
leaveOpen  Boolean  (Optional)
if the stream should be left open when this HtmlWriter is disposed; otherwise, .
Exceptions
ExceptionCondition
ArgumentNullException

stream is .

-or-

encoding is .

Remarks

Initializes a new instance of the HtmlWriter class for the specified stream by using the specified encoding and optionally leaves the stream open.

See Also