HtmlWriter(Stream, Encoding, 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(
	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, .

Remarks

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

Exceptions

ArgumentNullException

stream is .

-or-

encoding is .

See Also