An optimization type that you can use to pass string data from Platform::String^ input parameters to other methods with a minimum of copy operations.
class StringReference
Public Constructors
|
Name |
Description |
|---|---|
|
Two constructors for creating instances of StringReference. |
Public Methods
|
Name |
Description |
|---|---|
|
Returns the string data as an array of char16 values. |
|
|
Returns the number of characters in the string. |
|
|
Returns the string data as an HSTRING. |
|
|
Returns the string data as a Platform::String^. |
Public Operators
|
Name |
Description |
|---|---|
|
StringReference::operator= |
Assigns a StringReference to a new StringReference instance. |
|
StringReference::operator() |
Converts a StringReference to a Platform::String^. |