Appends a character to the end of the current secure string.
Assembly: mscorlib (in mscorlib.dll)
This secure string has already been disposed.
This secure string is read-only.
Performing this operation would make the length of this secure string greater than 65,536 characters.
An error occurred while protecting or unprotecting the value of this secure string.
The following example demonstrates how the and RemoveAt methods can be used to collect the characters in a password.