StringBuilderAppend Method (Char, Int32) |
Appends a specified number of copies of the string representation of a Unicode character to this instance.
Namespace: System.TextAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public StringBuilder Append(
char value,
int repeatCount
)
Parameters
- value
- Type: SystemChar
The character to append. - repeatCount
- Type: SystemInt32
The number of times to append value.
Return Value
Type:
StringBuilderA reference to this instance after the append operation has completed.
Exceptions Exception | Condition |
---|
ArgumentOutOfRangeException | repeatCount is less than zero.-or- Enlarging the value of this instance would exceed MaxCapacity. |
OutOfMemoryException | Out of memory. |
See Also