HString::HString 构造函数

初始化 HString 类的新实例。

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

参数

  • hstr
    HSTRING 句柄。

  • other
    一个现有的HString对象。

备注

第一构造函数初始化空的新 HString 对象。

第二个构造函数初始化到现有的 other 参数值的新的对象,然后 HString 销毁 other 参数。

要求

**标头:**corewrappers.h

**命名空间:**Microsoft::WRL::Wrappers

请参见

参考

HString 类