Click or drag to resize
StringBuilderAppendFormat Method (String, Object, Object, Object)
Appends the string returned by processing a composite format string, which contains zero or more format items, to this instance. Each format item is replaced by the string representation of either of three arguments.

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public StringBuilder AppendFormat(
	string format,
	Object arg0,
	Object arg1,
	Object arg2
)

Parameters

format
Type: SystemString
A composite format string (see Remarks).
arg0
Type: SystemObject
The first object to format.
arg1
Type: SystemObject
The second object to format.
arg2
Type: SystemObject
The third object to format.

Return Value

Type: StringBuilder
A reference to this instance with format appended. Each format item in format is replaced by the string representation of the corresponding object argument.
Exceptions
ExceptionCondition
ArgumentNullExceptionformat is null.
FormatExceptionformat is invalid.-or-The index of a format item is less than 0 (zero), or greater than or equal to 3.
ArgumentOutOfRangeExceptionThe length of the expanded string would exceed MaxCapacity.
See Also