Export (0) Print
Expand All

ECDiffieHellmanPublicKey.Dispose Method

Releases all resources used by the current instance of the ECDiffieHellman class.

Namespace:  System.Security.Cryptography
Assembly:  System.Core (in System.Core.dll)

public void Dispose()



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

For more information, see Cleaning Up Unmanaged Resources and Implementing a Dispose Method.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft