System.Security.SecureString.Clear Method

Deletes the value of the current secure string.

Syntax

public void Clear ()

Remarks

The computer memory that contains the value of this secure string is zeroed, then the length of the value of this secure string is set to zero.

Requirements

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