IGetActivationFactory IGetActivationFactory IGetActivationFactory Interface

Defines the implementation for a type that retrieves activation factories.

Syntax

Declaration

public interface IGetActivationFactorypublic interface IGetActivationFactoryPublic Interface IGetActivationFactory

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(System.String) that takes an Activation ID (ACID) as a parameter and returns a type that implements IActivationFactory.

Methods summary

Retrieves the implementation of an activation factory.

Methods

  • GetActivationFactory(System.String)
    GetActivationFactory(System.String)
    GetActivationFactory(System.String)
    GetActivationFactory(System.String)

    Retrieves the implementation of an activation factory.

    public object GetActivationFactory(System.String activatableClassId)public object GetActivationFactory(System.String activatableClassId)Public Function GetActivationFactory(activatableClassId As System.String) As object

    Parameters

    • activatableClassId
      System.String
      System.String
      System.String

      The Activation ID (ACID) of the activatable type produced by the factory.

    Returns

    • object
      object
      object

      An instance of an activation factory type. This type must implement IActivationFactory.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.GuidAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.Foundation.dll