Share via


String Constructor

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Include Protected Members
Include Inherited Members

Include Silverlight Members
Include Silverlight for Windows Phone Members
Include XNA Framework Members

Initializes a new instance of the String class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 String(Char*) Security Critical. Initializes a new instance of the String class to the value indicated by a specified pointer to an array of Unicode characters.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 String(array<Char[]) Initializes a new instance of the String class to the value indicated by an array of Unicode characters.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 String(SByte*) Security Critical. Initializes a new instance of the String class to the value indicated by a pointer to an array of 8-bit signed integers.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 String(Char, Int32) Initializes a new instance of the String class to the value indicated by a specified Unicode character repeated a specified number of times.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 String(array<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.
Public methodSupported by Silverlight for Windows PhoneSupported by Xbox 360 String(Char*, Int32, Int32) Security Critical. Initializes a new instance of the String class to the value indicated by a specified pointer to an array of Unicode characters, a starting character position within that array, and a length.

Top

See Also

Reference