System.Security.SecureString.Copy Method

Creates a copy of the current secure string.

Syntax

public SecureString Copy ()

Returns

A duplicate of this secure string.

Remarks

If an instance of a System.Security.SecureString is marked read-only, the copy of that instance will not be read-only.

Requirements

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