NullableTypes Class Library

NullableString Constructor (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.

[Visual Basic]
Overloads Public Sub New( _
   ByVal value As Char(), _
   ByVal startIndex As Integer, _
   ByVal length As Integer _
public NullableString(
   char[] value,
   int startIndex,
   int length


An array of Unicode characters.
The starting position within value.
The number of characters within value to use.


Exception TypeCondition
ArgumentNullExceptionvalue is a null reference (Nothing in Visual Basic).
ArgumentOutOfRangeExceptionstartIndex or length is less than zero.

- or -

The sum of paramref name="startIndex"/ and length is greater than the number of elements in value.

See Also

NullableString Class | NullableTypes Namespace | NullableString Constructor Overload List