HString::Set 方法

設定目前 HString 物件中的值為指定的寬字元字串或 HString 參數。

   HRESULT Set(
             const wchar_t* str) throw();
   HRESULT Set( 
             const wchar_t* str, 
             unsigned int len
              ) throw();
   HRESULT Set(
             const HSTRING& hstr
              ) throw();

參數

  • str
    寬字元字串。

  • len
    指派給目前 HString 物件的 str 參數的最大長度。

  • hstr
    現有的 HString 物件。

需求

標題: corewrappers.h

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

請參閱

參考

HString 類別