System.Security.SecureString.Dispose Method

Releases all resources used by the current System.Security.SecureString object.

Syntax

public void Dispose ()

Remarks

The SecureString.Dispose method writes binary zeroes to the allocated memory that contains the value of this System.Security.SecureString object, then frees the allocated memory.

For more information, see Finalize Methods and Destructors and Garbage Collection.

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0