Windows apps
Collapse the table of content
Expand the table of content

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 String(
	char[] value,
	int startIndex,
	int length
)

Parameters

value
Type: array<System..::..Char>[]()[][]
An array of Unicode characters.
startIndex
Type: System..::..Int32
The starting position within value.
length
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).

Show:
© 2017 Microsoft