Specifies the threading model for a COM object.
[ threading(model=enumeration) ]
(Optional) One of the following threading models:
neutral(.NET Framework components with no user interface)
both(apartment and free threading)
The default value is
The threading C++ attribute does not appear in the generated .idl file but will be used in the implementation of your COM object.
The threading attribute also guards access to an event_source.
See the licensed example for a sample use of threading.
|Applies to||class, struct|
For more information about the attribute contexts, see Attribute Contexts.