Mono Class Library: System.String Overview | Members

System.String Constructor

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.

[System.CLSCompliant(false)]
public String (sbyte* value, int startIndex, int length, System.Text.Encoding enc)

Parameters

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.

Exceptions

TypeReason
ArgumentOutOfRangeException

startIndex or length is less than zero.

-or-

value is a null pointer and length is not zero.

Remarks

If value is a null pointer, a string.Empty instance is constructed.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0