Constructs and initializes a new instance of the String class to the value indicated by a specified pointer to an array of 8-bit signed integers, a starting character position within that array, a length, and an Encoding object.
- value
- A pointer to a sbyte array.
- startIndex
- A int containing the starting position within value.
- length
- A int containing the number of characters within value to use. If length is zero, string.Empty is created.
- enc
- A System.Text.Encoding object that specifies how the array referenced by value is encoded.
- enc
- Documentation for this section has not yet been entered.
Type Reason ArgumentOutOfRangeException startIndex or length is less than zero.
-or-
value is a null pointer and length is not zero.
If value is a null pointer, a string.Empty instance is constructed.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0