SecureString::Dispose Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Releases all resources used by the current SecureString object.

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

public:
virtual void Dispose() sealed

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
Show: