Click or drag to resize
StringBuilderAppend Method (String, Int32, Int32)
Appends a copy of a specified substring to this instance.

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
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: StringBuilder
A reference to this instance after the append operation has completed.
Exceptions
ExceptionCondition
ArgumentNullExceptionvalue is null, and startIndex and count are not zero.
ArgumentOutOfRangeExceptioncount 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