CryptographyContextDispose Method

Releases all resources used by the CryptographyContext object.

Definition

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

Implements

IDisposableDispose

Remarks

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

See Also