| title | GetActivationFactory Function | Microsoft Docs | |||
|---|---|---|---|---|
| ms.custom | ||||
| ms.date | 11/04/2016 | |||
| ms.reviewer | ||||
| ms.suite | ||||
| ms.technology |
|
|||
| ms.tgt_pltfrm | ||||
| ms.topic | reference | |||
| f1_keywords |
|
|||
| dev_langs |
|
|||
| helpviewer_keywords |
|
|||
| ms.assetid | 5736d285-6beb-42aa-8788-e261c0010afe | |||
| caps.latest.revision | 4 | |||
| author | mikeblome | |||
| ms.author | mblome | |||
| manager | ghogen | |||
| ms.workload |
|
Retrieves an activation factory for the type specified by the template parameter.
template<typename T>
inline HRESULT GetActivationFactory(
_In_ HSTRING activatableClassId,
_Out_ Microsoft::WRL::Details::ComPtrRef<T> factory
);
T
A template parameter that specifies the type of the activation factory.
activatableClassId
The name of the class that the activation factory can produce.
factory
When this operation completes, a reference to the activation factory for type T.
S_OK if successful; otherwise, an error HRESULT that indicates why this operation failed.
Header: client.h
Namespace: Windows::Foundation