42 references to STA
mscorlib (1)
system\applicationactivator.cs (1)
107m_apt = ApartmentState.STA;
PresentationCore (14)
Core\CSharp\System\Windows\Input\InputManager.cs (1)
181if(Thread.CurrentThread.GetApartmentState() != ApartmentState.STA)
Core\CSharp\System\Windows\Input\InputProcessorProfiles.cs (1)
78Debug.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.STA, "Initialize called on MTA thread!");
Core\CSharp\System\Windows\Input\InputProcessorProfilesLoader.cs (1)
74Debug.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.STA, "Load called on MTA thread!");
Core\CSharp\System\Windows\Input\TextServicesContext.cs (1)
63Debug.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.STA, "SetDispatcherThreaad on MTA thread");
Core\CSharp\System\Windows\Media\Effects\BitmapEffect.cs (1)
65if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA)
Core\CSharp\System\Windows\OleServicesContext.cs (9)
122if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 141if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 160if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 181if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 200if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 234if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 251if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 277if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 307if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA)
PresentationFramework (6)
src\Framework\MS\Internal\AppModel\XappLauncher.cs (1)
535thread.SetApartmentState(ApartmentState.STA);
src\Framework\System\Windows\Documents\TextServicesHost.cs (1)
81Debug.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.STA, "OnRegisterTextStore must be called on STA thread");
src\Framework\System\Windows\Interop\ActiveXHost.cs (1)
113if (Thread.CurrentThread.ApartmentState != ApartmentState.STA)
src\Framework\System\Windows\Interop\BrowserInteropHelper.cs (1)
93Verify.IsApartmentState(ApartmentState.STA);
src\Framework\System\Windows\Interop\DocobjHost.cs (1)
85Debug.Assert(_mainThread.ApartmentState == ApartmentState.STA);
src\Framework\System\Windows\Shell\JumpList.cs (1)
562Verify.IsApartmentState(ApartmentState.STA);
System (4)
compmod\microsoft\win32\SystemEvents.cs (1)
572if (!UserInteractive || Thread.CurrentThread.GetApartmentState() == ApartmentState.STA) {
services\monitoring\system\diagnosticts\Process.cs (2)
2855if( Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) { 2858executionThread.SetApartmentState(ApartmentState.STA);
sys\system\collections\concurrent\BlockingCollection.cs (1)
1765return Thread.CurrentThread.GetApartmentState() == ApartmentState.STA;
System.Windows.Forms (15)
winforms\Managed\System\WinForms\Application.cs (1)
3210return System.Threading.ApartmentState.STA;
winforms\Managed\System\WinForms\AxHost.cs (2)
285if (Application.OleRequired() != ApartmentState.STA) { 3641if (Application.OleRequired() != System.Threading.ApartmentState.STA) {
winforms\Managed\System\WinForms\Clipboard.cs (2)
111if (Application.OleRequired() != System.Threading.ApartmentState.STA) { 218if (Application.OleRequired() != System.Threading.ApartmentState.STA) {
winforms\Managed\System\WinForms\ComboBox.cs (2)
201if (Application.OleRequired() != System.Threading.ApartmentState.STA) { 249if (Application.OleRequired() != System.Threading.ApartmentState.STA) {
winforms\Managed\System\WinForms\Control.cs (1)
11238if (Application.OleRequired() != System.Threading.ApartmentState.STA) {
winforms\Managed\System\WinForms\FileDialog.cs (1)
982if (Control.CheckForIllegalCrossThreadCalls && Application.OleRequired() != System.Threading.ApartmentState.STA) {
winforms\Managed\System\WinForms\FolderBrowserDialog.cs (1)
257if (Control.CheckForIllegalCrossThreadCalls && Application.OleRequired() != System.Threading.ApartmentState.STA)
winforms\Managed\System\WinForms\Printing\PrintControllerWithStatusDialog.cs (1)
170thread.SetApartmentState(ApartmentState.STA);
winforms\Managed\System\WinForms\ToolStripDropTargetManager.cs (1)
252if (Application.OleRequired() != System.Threading.ApartmentState.STA)
winforms\Managed\System\WinForms\TrustManager.cs (1)
1078thread.SetApartmentState(System.Threading.ApartmentState.STA);
winforms\Managed\System\WinForms\WebBrowserBase.cs (2)
108if (Application.OleRequired() != ApartmentState.STA) { 1361if (Application.OleRequired() != System.Threading.ApartmentState.STA) {
WindowsBase (2)
Base\System\Windows\Threading\Dispatcher.cs (1)
2429if (Thread.CurrentThread.GetApartmentState() == ApartmentState.STA)
Shared\MS\Internal\TextServicesLoader.cs (1)
111Invariant.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.STA, "Load called on MTA thread!");