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)

new : 
        value:char[] * 
        startIndex:int * 
        length:int -> String


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).

© 2018 Microsoft