ProtocolLoggerDispose Method

Releases all resource used by the ProtocolLogger object.

Definition

Namespace: MailKit
Assembly: MailKit (in MailKit.dll) Version: 5.0.0
C#
public void Dispose()

Implements

IDisposableDispose

Remarks

Call Dispose when you are finished using the ProtocolLogger. The Dispose method leaves the ProtocolLogger in an unusable state. After calling Dispose, you must release all references to the ProtocolLogger so the garbage collector can reclaim the memory that the ProtocolLogger was occupying.

See Also