HString::Detach Method
Disassociates the specified HString object from its underlying value.
HSTRING Detach() throw()
Return Value
The underlying HString value before the detach operation started.
Requirements
Header: corewrappers.h
Namespace: Microsoft::WRL::Wrappers