StringBuilderAppend Method (Char, Int32, Int32) |
Appends the string representation of a specified subarray of Unicode characters to this instance.
Namespace: System.TextAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax 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:
StringBuilderA reference to this instance after the append operation has completed.
Exceptions Exception | Condition |
---|
ArgumentNullException | value is null, and startIndex and charCount are not zero. |
ArgumentOutOfRangeException | charCount 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