String.String Constructors
This element is not available using the selected API.
This element is not available using the selected API.
In this article
Initializes a new instance of the String class.
| Name | Description | |
|---|---|---|
| Public method | String() | Initializes a new instance of the String class with the empty string. |
| Public method | String(const char* str) | Initializes a new instance of the String class with a copy of the specified characters. |
| Public method | String(const wchar_t* str) | Initializes a new instance of the String class with a copy of the specified characters. |
| Public method | String(const String& obj) | Initializes a new instance of the String class that is a copy the given object. |
public:
String ()public:
String (
const char* str
)The characters in str are converted from the current code page into UTF-8 encoding.
public:
String (
const wchar_t* str
)The characters in str are converted from the wide character representation of the platform, which on the Microsoft Windows platform this is UTF-16 and on Unix UTF-32, into UTF-8 encoding.
public:
String (
const String& obj
)Windows, Linux, Android
This element is not available using the selected API.
In this article
This element is not available using the selected API.
In this article