Collapse AllExpand All      Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: F# Code: JScript 
String Constructor (Char[], Int32, Int32)

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the String class to the value indicated by an array of Unicode characters, a starting character position within that array, and a length.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)
Public Sub New ( _
	value As Char(), _
	startIndex As Integer, _
	length As Integer _
public String(
	char[] value,
	int startIndex,
	int length
	array<wchar_t>^ value, 
	int startIndex, 
	int length
new : 
        value:char[] * 
        startIndex:int * 
        length:int -> String
public function String(
	value : char[], 
	startIndex : int, 
	length : int


Type: array< System..::..Char>[]()[][]
An array of Unicode characters.
Type: System..::..Int32
The starting position within value.
Type: System..::..Int32
The number of characters within value to use.

If length is zero, an Empty instance is initialized.

This constructor copies Unicode characters from value, starting at startIndex and ending at (startIndex + length - 1).