HString::HString Constructor

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

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.

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.

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

HString Class

Show: