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