String Constructor (array<Char>[]()[][], Int32, Int32)
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:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public String( char[] value, int startIndex, int length )
<TemplateAttribute> _ Public Sub New ( _ value As Char(), _ startIndex As Integer, _ length As Integer _ )
[TemplateAttribute] public: String( array<wchar_t^>^ 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.
Exceptions
Exception | Condition |
---|---|
System..::..ArgumentNullException | value is null. |
System..::..ArgumentOutOfRangeException | startIndex or length is less than zero.-or- The sum of startIndex and length is greater than the number of elements in value. |