ProtocolLogger(Stream, Boolean) Constructor

Initializes a new instance of the ProtocolLogger class.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public ProtocolLogger(
	Stream stream,
	bool leaveOpen = false
)

Parameters

stream  Stream
The stream.
leaveOpen  Boolean  (Optional)
if the stream should be left open after the protocol logger is disposed.

Remarks

Creates a new ProtocolLogger to log to a specified stream.

See Also