This documentation is archived and is not being maintained.

SymmetricAlgorithm.Finalize Method

.NET Framework 1.1

Releases the unmanaged resources used by the SymmetricAlgorithm.

[C#] In C#, finalizers are expressed using destructor syntax.

[C++] In C++, finalizers are expressed using destructor syntax.

[Visual Basic]
Overrides Protected Sub Finalize()
protected override function Finalize();


This method is guaranteed to be called before the object is destroyed, even if an exception occurs. Clearing the KeyValue parameter prevents the secret key for the symmetric algorithm from being disclosed to other applications.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

SymmetricAlgorithm Class | SymmetricAlgorithm Members | System.Security.Cryptography Namespace | Cryptographic Services