Click or drag to resize
StringBuilderAppend Method (Char, Int32)
Appends a specified number of copies of the string representation of a Unicode character to this instance.

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: StringBuilder
A reference to this instance after the append operation has completed.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionrepeatCount is less than zero.-or- Enlarging the value of this instance would exceed MaxCapacity.
OutOfMemoryExceptionOut of memory.
See Also