设置当前 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:: 包装