Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SimpleActivationFactory Class

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at SimpleActivationFactory Class.

Provides a fundamental mechanism to create a Windows Runtime or classic COM base class.

template<  
   typename Base  
>  
class SimpleActivationFactory : public ActivationFactory<>;  

Parameters

Base
A base class.

The base class must provide a default constructor.

The following code example demonstrates how to use SimpleActivationFactory with the ActivatableClassWithFactoryEx macro.

ActivatableClassWithFactoryEx(MyClass, SimpleActivationFactory, MyServerName);

Public Methods

NameDescription
SimpleActivationFactory::ActivateInstance MethodCreates an instance of the specified interface.
SimpleActivationFactory::GetRuntimeClassName MethodGets the runtime class name of an instance of the class specified by the Base class template parameter.
SimpleActivationFactory::GetTrustLevel MethodGets the trust level of an instance of the class specified by the Base class template parameter.

I0

ChainInterfaces

I0

RuntimeClassBase

ImplementsHelper

DontUseNewUseMake

RuntimeClassFlags

RuntimeClassBaseT

RuntimeClass

ActivationFactory

SimpleActivationFactory

Header: module.h

Namespace: Microsoft::WRL

Microsoft::WRL Namespace

Show: