MultiThreaded read-only property Indicates
the threading model of the apartment. Usually the COMApartment
contains a single-threaded apartment and this property will return
False, but through the Pack1Creator
a free threaded apartment can be created.
Syntax:
variable = object.MultiThreaded
Remarks:
In fact most of the applications of this object are related to the
ability to "enforce" single-threaded apartment usage.
However sometimes an application may need to create a free-threaded
apartment (or member thread for the main free-threaded apartment). In
such cases the object can be queried by other parts of the application
for its threading model.
Applies to: COMApartment
object
|