NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ApartmentState Enumeration

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.

Remarks

A Thread can be marked to indicate that it will host a single-threaded or multi-threaded apartment.

Members

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.

Requirements

Namespace: System.Threading

Assembly: mscorlib.dll

See Also

System.Threading Namespace | ApartmentState