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