Share via


HString::HString Constructor

Initializes a new instance of the HString class.

   HString(HSTRING hstr = nullptr) throw();
   HString(HString&& other) throw();

Parameters

  • hstr
    An HSTRING handle.

  • other
    An existing HString object.

Remarks

The first constructor initializes a new HString object that is empty.

The second constructor initializes a new HString object to the value of the existing other parameter, and then destroys the other parameter.

Requirements

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

See Also

Reference

HString Class