HStringReference Class
Represents an HSTRING that is created from an existing string.
class HStringReference;
Remarks
The lifetime of the backing buffer in the new HSTRING is not managed by the Windows Runtime. The caller allocates a source string on the stack frame to avoid a heap allocation and to eliminate the risk of a memory leak. Also, the caller must ensure that source string remains unchanged during the lifetime of the attached HSTRING. For more information, see WindowsCreateStringReference function.
Members
Public Constructors
Name |
Description |
---|---|
Initializes a new instance of the HStringReference class. |
Members
Member |
Description |
---|---|
Retrieves the value of the underlying HSTRING handle. |
Public Operators
Name |
Description |
---|---|
Moves the value of another HStringReference object to the current HStringReference object. |
|
Indicates whether the two parameters are equal. |
|
Indicates whether the two parameters are not equal. |
Inheritance Hierarchy
HStringReference
Requirements
Header: corewrappers.h
Namespace: Microsoft::WRL::Wrappers