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)
Syntax
'Declaration
Public Sub New ( _
value As Char(), _
startIndex As Integer, _
length As Integer _
)
public String(
char[] value,
int startIndex,
int length
)
public:
String(
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
)
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.
Remarks
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).
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.