Returns a pointer to the beginning of the object's data buffer as a C-style array of char16 (wchar_t) elements.
const char16* Data()
Use this method to convert from Platform::String^ to wchar_t*. When the String object goes out of scope, the Data pointer is no longer guaranteed to be valid. To store the data beyond the lifetime of the original String object, use wcscpy_s to copy the array into memory that you have allocated yourself.