Share via


HString::Set Method

Sets the value of the current HString object to the specified wide-character string or HString parameter.

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

Parameters

  • str
    A wide-character string.

  • len
    The maximum length of the str parameter that is assigned to the current HString object.

  • hstr
    An existing HString object.

Requirements

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

See Also

Reference

HString Class