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. [Edit]

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

Parameters

value
A pointer to a sbyte array. [Edit]
startIndex
A int containing the starting position within value. [Edit]
length
A int containing the number of characters within value to use. If length is zero, string.Empty is created. [Edit]
enc
A System.Text.Encoding object that specifies how the array referenced by value is encoded. [Edit]
enc
Documentation for this section has not yet been entered. [Edit]

Exceptions

TypeReason
ArgumentOutOfRangeException

startIndex or length is less than zero.

-or-

value is a null pointer and length is not zero.

[Edit]

Remarks

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

Requirements

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