ActivatableClass Macros
Populates an internal cache that contains a factory that can create an instance of the specified class.
Syntax
ActivatableClass(
className
);
ActivatableClassWithFactory(
className,
factory
);
ActivatableClassWithFactoryEx(
className,
factory,
serverName
);
Parameters
className
Name of the class to create.
factory
Factory that will create an instance of the specified class.
serverName
A name that specifies a subset of factories in the module.
Remarks
Do not use these macros with classic COM unless you use the #undef
directive to ensure that the __WRL_WINRT_STRICT__
macro definition is removed.
Requirements
Header: module.h
Namespace: Microsoft::WRL
See also
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för