17 references to SetApartmentState
mscorlib (2)
system\applicationactivator.cs (2)
87
th.
SetApartmentState
(m_apt);
98
Thread.CurrentThread.
SetApartmentState
(m_apt);
PresentationFramework (1)
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
535
thread.
SetApartmentState
(ApartmentState.STA);
System (1)
services\monitoring\system\diagnosticts\Process.cs (1)
2858
executionThread.
SetApartmentState
(ApartmentState.STA);
System.Data (1)
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
697
Thread.CurrentThread.
SetApartmentState
(ApartmentState.MTA);
System.Management (7)
Instrumentation\EventSource.cs (1)
343
thread.
SetApartmentState
(ApartmentState.MTA);
Instrumentation\Instrumentation.cs (1)
497
cleanupThread.
SetApartmentState
(ApartmentState.MTA);
InteropClasses\WMIInterop.cs (5)
1986
thread.
SetApartmentState
(ApartmentState.MTA);
2385
this.thread.
SetApartmentState
(aptState) ;
2400
this.thread.
SetApartmentState
(aptState);
2415
this.thread.
SetApartmentState
(aptState );
2430
this.thread.
SetApartmentState
( aptState );
System.ServiceModel (1)
System\ServiceModel\Administration\WbemProvider.cs (1)
1064
thread.
SetApartmentState
(ApartmentState.MTA);
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (1)
170
thread.
SetApartmentState
(ApartmentState.STA);
winforms\Managed\System\WinForms\TrustManager.cs (1)
1078
thread.
SetApartmentState
(System.Threading.ApartmentState.STA);
System.Workflow.Runtime (2)
DebugEngine\ProgramPublisher.cs (2)
50
publisherThread.
SetApartmentState
(ApartmentState.MTA);
93
unpublisherThread.
SetApartmentState
(ApartmentState.MTA);