System.Security.SecureString.RemoveAt Method

Removes the character at the specified index position from this secure string.

Syntax

[System.Runtime.ExceptionServices.HandleProcessCorruptedStateExceptions]
public void RemoveAt (int index)

Parameters

index
The index position of a character in this secure string.

Remarks

The index is zero-based and the first character in this instance is at index position zero.

The value of this secure string, if any, is decrypted; the character at the specified index position is removed; then the new value is encrypted.

Requirements

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