March 2002
Intermediate to advanced
864 pages
31h 8m
English
MTAThreadAttribute
This attribute is used entirely for COM interoperability in .NET; it has no effect on a pure .NET application or system.
This attribute can only be used on the
Main method of the application. It
sets
the default threading model to MTA (multithreaded apartment).
Alternatively, you can use the
STAThreadAttribute attribute for a
single-threaded apartment model.
public sealed class MTAThreadAttribute : Attribute { // Public Constructors public method MTAThreadAttribute(); }
Object→Attribute→MTAThreadAttribute
Method