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

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public StringBuilder Append(
	char[] value,
	int startIndex,
	int charCount
)

Parameters

value
Type: SystemChar
A character array.
startIndex
Type: SystemInt32
The starting position in value.
charCount
Type: SystemInt32
The number of characters to append.

Return Value

Type: StringBuilder
A reference to this instance after the append operation has completed.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null, and startIndex and charCount are not zero.
ArgumentOutOfRangeExceptioncharCount is less than zero.-or- startIndex is less than zero.-or- startIndex + charCount is greater than the length of value.-or- Enlarging the value of this instance would exceed MaxCapacity.
See Also