String::String Constructor

Initializes a new instance of the String class with a copy of the input string data.

    String();

    String(
      char16* s
    )

    String(
      char16* s, 
      unsigned int n
    )
s

A series of wide characters that initialize the string. char16

n

A number that specifies the length of the string.

String^ s = L”Hello!”;

Minimum supported client: Windows 8

Minimum supported server: Windows Server 2012

Namespace: Platform

Metadata: vccorlib.h

Show:
© 2014 Microsoft. All rights reserved.