Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

HString Class

Provides support for manipulating HSTRING handles.

class HString;

The Windows Runtime provides access to strings through HSTRING handles. The HString class provides convenience functions and operators to simplify using HSTRING handles.



HString::HString Constructor

Initializes a new instance of the HString class.

HString::~HString Destructor

Destroys the current instance of the HString class.



HString::Set Method

Sets the value of the current HString object to the specified wide-character string or HString parameter.

HString::Attach Method

Associates the specified HString object with the current HString object.

HString::CopyTo Method

Copies the current HString object to an HSTRING object.

HString::Detach Method

Disassociates the specified HString object from its underlying value.

HString::GetAddressOf Method

Retrieves a pointer to the underlying HSTRING handle.

HString::Get Method

Retrieves the value of the underlying HSTRING handle.

HString::Release Method

Deletes the underlying string value and intializes the current HString object to an empty value.

HString::MakeReference Method

Creates an HStringReference object from a specified string parameter.



HString::Operator= Operator

Moves the value of another HString object to the current HString object.

HString::Operator== Operator

Indicates whether the two parameters are equal.

HString::Operator!= Operator

Indicates whether the two parameters are not equal.

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.