Bewerken

Share via


SecureString.Dispose Method

Definition

Releases all resources used by the current SecureString object.

public:
 virtual void Dispose();
public void Dispose ();
abstract member Dispose : unit -> unit
override this.Dispose : unit -> unit
Public Sub Dispose ()

Implements

Remarks

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.

Applies to