IActivationFactory interface (activation.h)
Enables classes to be activated by the Windows Runtime.
Inheritance
The IActivationFactory interface inherits from IInspectable. IActivationFactory also has these types of members:
Methods
The IActivationFactory interface has these methods.
IActivationFactory::ActivateInstance Creates a new instance of the Windows Runtime class that is associated with the current activation factory. |
Remarks
Implement the IActivationFactory interface when you create a class that you want Windows Runtime applications to use. Clients call the ActivateInstance method to use an instance of your class.
You can get an IActivationFactory pointer by calling the RoGetActivationFactory function.
During activation of a class, the Windows Runtime calls the DllGetActivationFactory function to get an IActivationFactory pointer that corresponds to the requested class.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | activation.h |