Simply awesomeThe #1 ASP/ASP.NET Developer Community

StringBuilder.Append Method ( Char [ ], Int32, Int32 )

System.Text Namespace   StringBuilder Class


Appends the string representation of a specified subarray of Unicode characters to the end of this instance.

[ VB ]
<Serializable>
Overloads Public Function Append ( _
   ByVal value ( ) As Char, _
   ByVal startIndex As Integer, _
   ByVal charCount As Integer _
) As StringBuilder

[ C# ]
[Serializable]
public StringBuilder Append ( 
   char [ ] value,
   int startIndex,
   int charCount
);

[ C++ ]
[Serializable]
public: StringBuilder* Append ( 
   __wchar_t value __gc [ ],
   int startIndex,
   int charCount
);

[ JScript ]
public Serializable
function Append ( 
   value : Char [ ],
   startIndex : int,
   charCount : int
) : StringBuilder;

Parameters

value
The array of characters to append.
startIndex
The starting position in value .
charCount
The number of characters append.

Return Value

A reference to this instance after the append operation has occurred.

Exceptions


Exception Type Condition
ArgumentNullException value is a null reference ( Nothing in Visual Basic ), and startIndex and charCount are not zero.
ArgumentOutOfRangeException charCount is less than zero.

-or-

startIndex is less than zero.

-or-

startIndex + charCount is less than the length of value.


Remarks

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

The capacity is adjusted as needed.

See Also

StringBuilder Members   StringBuilder.Append Overload List   Char


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note