MailKit.ProtocolLogger.Dispose C# (CSharp) 메소드

Dispose() 공개 메소드

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
리턴 void
		public void Dispose ()
		{
			Dispose (true);
			GC.SuppressFinalize (this);
		}

Same methods

ProtocolLogger::Dispose ( bool disposing ) : void

Usage Example

예제 #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();
     }
 }