Dispose() public method

Releases all resource used by the MailKit.ProtocolLogger object.
Call Dispose() when you are finished using the MailKit.ProtocolLogger. The Dispose() method leaves the MailKit.ProtocolLogger in an unusable state. After calling Dispose(), you must release all references to the MailKit.ProtocolLogger so the garbage collector can reclaim the memory that the MailKit.ProtocolLogger was occupying.
public Dispose ( ) : void
return void
Exemplo n.º 1
0
 /// <summary>
 /// Releases the unmanaged resources used by the <see cref="MailService"/> and
 /// optionally releases the managed resources.
 /// </summary>
 /// <remarks>
 /// Releases the unmanaged resources used by the <see cref="MailService"/> and
 /// optionally releases the managed resources.
 /// </remarks>
 /// <param name="disposing"><c>true</c> to release both managed and unmanaged resources;
 /// <c>false</c> to release only the unmanaged resources.</param>
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         ProtocolLogger.Dispose();
     }
 }