Export (0) Print
Expand All

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()
[C#]
~SymmetricAlgorithm();
[C++]
~SymmetricAlgorithm();
[JScript]
protected override function Finalize();

Remarks

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.

Requirements

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

Show:
© 2015 Microsoft