HString::HString Constructor

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at HString::HString Constructor.

Initializes a new instance of the HString class.

Syntax

  
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

HString Class