StringBuilderAppend Method (String, Int32, Int32) |
Appends a copy of a specified substring to this instance.
Namespace: System.TextAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public StringBuilder Append(
string value,
int startIndex,
int count
)
Parameters
- value
- Type: SystemString
The string that contains the substring to append. - startIndex
- Type: SystemInt32
The starting position of the substring within value. - count
- Type: SystemInt32
The number of characters in value 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 count are not zero. |
ArgumentOutOfRangeException | count less than zero.-or- startIndex less than zero.-or- startIndex + count is greater than the length of value.-or- Enlarging the value of this instance would exceed MaxCapacity. |
See Also