Windows Dev Center

IGetActivationFactory interface

Defines the implementation for a type that retrieves activation factories.

Syntax


public interface IGetActivationFactory

Members

The IGetActivationFactory interface has these types of members:

Methods

The IGetActivationFactory interface has these methods. It also inherits methods from the Object class.

MethodDescription
GetActivationFactory Retrieves the implementation of an activation factory.

 

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 Windows Runtime 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.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Foundation
Windows::Foundation [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06020000)]
[WebHostHidden()]

See also

CoreApplication::RunWithActivationFactories

 

 

Show:
© 2015 Microsoft