HString::Set Method

 

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

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.

Header: corewrappers.h

Namespace: Microsoft::WRL::Wrappers

HString Class

Show: