March 2002
Intermediate to advanced
864 pages
31h 8m
English
STAThreadAttribute
This attribute can only be used on the Main method of an
application. It sets the default threading model to STA (single-threaded
apartment). Alternatively, you can use the
MTAThreadAttribute attribute to use a
multithreaded apartment model.
Like its counterpart, MTAThreadAttribute, this attribute
has no meaning outside of COM interoperability.
public sealed class STAThreadAttribute : Attribute { // Public Constructors public method STAThreadAttribute(); }
Object→Attribute→STAThreadAttribute
Method