System Namespace String Class
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.
This constructor is not CLS-compliant. For more information about CLS compliance, see What is the Common Language Specification.
[ C# ]
[ Serializable ]
unsafe public String (
sbyte* value,
int startIndex,
int length,
Encoding enc
);
[ C++ ]
[ Serializable ]
public: String (
char* value,
int startIndex,
int length,
Encoding* enc
);
[ VB ] This constructor cannot be used in Visual Basic.
[ JScript ] This constructor cannot be used in JScript.
- value
- A pointer to an array of 8-bit signed integers.
- startIndex
- The starting position within value.
- length
- The number of characters within value to use.
- enc
- An Encoding object that specifies how the array referenced by value is encoded.
If value is a null pointer, an Empty instance is initialized.
String Members String Constructor Overload List SByte Int32