String Constructor (Char[], Int32, Int32)
Initializes a new instance of the String class with a value indicated by a specified array of Unicode characters, a specified starting index number (character position) in that array, and a specified length (number of characters).
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Syntax
[MethodImplAttribute]
public String (
char[] value,
int startIndex,
int length
)
Parameters
- value
The specified array of Unicode characters. - startIndex
The index number in the Unicode array where you want the copying of characters to begin. - length
The number of characters you want to copy from the Unicode array.
Remarks
If the length of the string passed in the array parameter is 0 (zero), an empty instance of the String class is initialized.
This constructor copies Unicode characters from the value parameter, starting at startIndex and ending at (startIndex + length - 1).
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.