Dispose Method

SecureString.Dispose Method ()


Releases all resources used by the current SecureString object.

Namespace:   System.Security
Assembly:  mscorlib (in mscorlib.dll)

public void Dispose()

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

For more information, see Garbage Collection.

.NET Framework
Available since 2.0
Return to top
© 2015 Microsoft