IGetActivationFactory Interface

Definition

Defines the implementation for a type that retrieves activation factories.

C#
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.Guid(1323011810, 38621, 18855, 148, 247, 70, 7, 221, 171, 142, 60)]
public interface IGetActivationFactory
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

For typical apps (those that use C#, Visual Basic, C++/CX or JavaScript for programming language), this interface should be considered as an infrastructure piece that the overall Windows Runtime programming experience uses as an implementation detail. There are no common app development scenarios that rely on implementing or using the IGetActivationFactory interface directly.

The scenario that IGetActivationFactory supports is if you are defining Windows Runtime components using WRL, which are packaged as separate executables. In this case, there is no automatic activation as part of the app model, and the component is responsible for the activation of its classes prior to use (through various APIs in the Windows.ApplicationModel.Core namespace). For a sample that illustrates how to implement this, see Creating a EXE component with C++ sample.

Notes to implementers

The implementation of a type that supports this interface must have a method called GetActivationFactory that takes an Activation ID (ACID) as a parameter and returns a type that implements IActivationFactory.

Methods

GetActivationFactory(String)

Retrieves the implementation of an activation factory.

Applies to

Product Versions
WinRT Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

See also