| description | Learn more about: ActivateInstance Function | ||
|---|---|---|---|
| title | ActivateInstance Function | ||
| ms.date | 11/04/2016 | ||
| ms.topic | reference | ||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| ms.assetid | 8cfd1dd9-5fda-4cc2-acf8-d40e783b3875 |
Registers and retrieves an instance of a specified type defined in a specified class ID.
template<typename T>
inline HRESULT ActivateInstance(
_In_ HSTRING activatableClassId,
_Out_ Microsoft::WRL::Details::ComPtrRef<T> instance
);T
A type to activate.
activatableClassId
The name of the class ID that defines parameter T.
instance
When this operation completes, a reference to an instance of T.
S_OK if successful; otherwise, an error HRESULT that indicates the cause of the error.
Header: client.h
Namespace: Windows::Foundation