SecureString.RemoveAt Method (Int32)
Removes the character at the specified index position from this secure string.
Assembly: mscorlib (in mscorlib.dll)
This secure string has already been disposed.
This secure string is read-only.
index is less than zero, or greater than or equal to the length of this secure string.
An error occurred while protecting or unprotecting the value of this secure string.
The index is zero-based; the first character in this instance is at index position zero.
If the implementation uses a protection mechanism, such as encryption, the value of this secure string, if any, is unprotected; the character at the specified index position is removed; then the new value is re-protected.
The following example demonstrates how the AppendChar and methods can be used to collect the characters in a password.
Available since 2.0