17 references to MTA
mscorlib (2)
system\applicationactivator.cs (1)
111m_apt = ApartmentState.MTA;
system\threading\thread.cs (1)
999if ((state == System.Threading.ApartmentState.Unknown) && (retState == System.Threading.ApartmentState.MTA))
System.Data (1)
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
697Thread.CurrentThread.SetApartmentState(ApartmentState.MTA);
System.Management (9)
Instrumentation\EventSource.cs (1)
343thread.SetApartmentState(ApartmentState.MTA);
Instrumentation\Instrumentation.cs (1)
497cleanupThread.SetApartmentState(ApartmentState.MTA);
InteropClasses\WMIInterop.cs (7)
1986thread.SetApartmentState(ApartmentState.MTA); 2100if(Thread.CurrentThread.GetApartmentState() != ApartmentState.MTA) 2298InitializeThreadState ( null, workerMethod, ApartmentState.MTA, false ) ; 2311InitializeThreadState ( null, workerMethod, ApartmentState.MTA, false ) ; 2324InitializeThreadState ( null, workerMethod, ApartmentState.MTA, false ) ; 2337InitializeThreadState ( null, workerMethod, ApartmentState.MTA, false ) ; 2371this.apartmentType = ApartmentState.MTA ;
System.ServiceModel (2)
System\ServiceModel\Administration\WbemProvider.cs (2)
1059if (Thread.CurrentThread.GetApartmentState() != ApartmentState.MTA) 1064thread.SetApartmentState(ApartmentState.MTA);
System.Windows.Forms (1)
winforms\Managed\System\WinForms\Application.cs (1)
3207return System.Threading.ApartmentState.MTA;
System.Workflow.Runtime (2)
DebugEngine\ProgramPublisher.cs (2)
50publisherThread.SetApartmentState(ApartmentState.MTA); 93unpublisherThread.SetApartmentState(ApartmentState.MTA);