71 references to ApartmentState
ILCompiler.Compiler (2)
Microsoft.VisualBasic.Forms (1)
mscorlib (1)
netstandard (1)
PresentationCore (11)
PresentationFramework (5)
System.Collections.Concurrent (1)
System.Data.OleDb (2)
System.DirectoryServices (2)
System.DirectoryServices.AccountManagement (2)
System.Management (13)
System\Management\InteropClasses\WMIInterop.cs (13)
1209thread.SetApartmentState(ApartmentState.MTA);
1317if (Thread.CurrentThread.GetApartmentState() != ApartmentState.MTA)
1410private ApartmentState apartmentType; // Apartment type of thread
1471public ApartmentState ApartmentType
1517InitializeThreadState(null, workerMethod, ApartmentState.MTA, false);
1530InitializeThreadState(null, workerMethod, ApartmentState.MTA, false);
1543InitializeThreadState(null, workerMethod, ApartmentState.MTA, false);
1556InitializeThreadState(null, workerMethod, ApartmentState.MTA, false);
1590this.apartmentType = ApartmentState.MTA;
1600private void InitializeThreadState(object threadParams, ThreadWorkerMethodWithReturn workerMethod, ApartmentState aptState, bool background)
1616private void InitializeThreadState(object threadParams, ThreadWorkerMethodWithReturnAndParam workerMethod, ApartmentState aptState, bool background)
1632private void InitializeThreadState(object threadParams, ThreadWorkerMethod workerMethod, ApartmentState aptState, bool background)
1648private void InitializeThreadState(object threadParams, ThreadWorkerMethodWithParam workerMethod, ApartmentState aptState, bool background)
System.Private.CoreLib (11)
System.Speech (2)
System.Threading.Thread (1)
System.Windows.Forms (16)