Mono Class Library: System.Text.StringBuilder Overview | Members

System.Text.StringBuilder.Append Method

Appends a copy of an array of Unicode characters, specified by a starting index and length, of a specified string to the end of the current instance. [Edit]

public StringBuilder Append (string value, int startIndex, int count)

Parameters

value
The string from which the substring will be taken. [Edit]
startIndex
A int containing the index in value from which to start copying. [Edit]
count
A int containing the number of characters to copy from value . [Edit]

Returns

The current instance after the operation has occurred. [Edit]

Exceptions

TypeReason
ArgumentNullExceptionvalue is a null reference, and startIndex and count are not both zero. [Edit]
ArgumentOutOfRangeException

charCount or startIndex is less than zero.

-or-

The sum of startIndex and charCount is greater than the length of value .

[Edit]

Remarks

This method appends the specified range of characters in the value string to the current instance. If value is a null reference and startIndex and count are both zero, no changes are made.

The StringBuilder.Capacity of the current instance is increased as necessary.

[Edit]

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0