Represents the appartment state of a Thread.
[Visual Basic] Public Enum ApartmentState [C#] public enum ApartmentState [C++] public enum ApartmentState
[JScript] In JScript, you can use the enumerations in the NGWS frameworks, but you cannot define your own.
A Thread can be marked to indicate that it will host a single-threaded or multi-threaded apartment.
Member Name | Description |
---|---|
MTA | Designates that a Thread will host a multi-threaded apartment. |
STA | Designates that a Thread will host a single-threaded apartment. |
Unknown | Designates that the ApartmentState of the Thread has not been set yet. |
Namespace: System.Threading
Assembly: mscorlib.dll