MaskedTextProvider::Set Method (String^)
Sets the formatted string to the specified input string.
Assembly: System (in System.dll)
Parameters
- input
-
Type:
System::String^
The String value used to set the formatted string.
Return Value
Type: System::Booleantrue if all the characters were successfully set; otherwise, false.
| Exception | Condition |
|---|---|
| ArgumentNullException | The input parameter is null. |
The Set method clears the existing contents of the formatted string and then applies the mask against the input string to update the contents of the formatted string.
The following conditions are considered errors. When an error occurs, the formatted string remains unaltered and Set returns false.
There are not enough editable positions in the formatted string to hold the contents of the replacement string.
One of the replacement character values is not valid because it is not printable or does not match its corresponding mask element.
Available since 2.0