32 references to STA
ILCompiler.Compiler (1)
IL\Stubs\StartupCode\StartupCodeMainMethod.cs (1)
111codeStream.EmitLdc((int)System.Threading.ApartmentState.STA);
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Interaction.vb (1)
221If Thread.CurrentThread.GetApartmentState() <> ApartmentState.STA Then
PresentationCore (11)
System\Windows\Input\InputManager.cs (1)
142if(Thread.CurrentThread.GetApartmentState() != ApartmentState.STA)
System\Windows\Input\InputProcessorProfiles.cs (1)
35Debug.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.STA, "Initialize called on MTA thread!");
System\Windows\Input\InputProcessorProfilesLoader.cs (1)
56Debug.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.STA, "Load called on MTA thread!");
System\Windows\Input\Stylus\Common\DynamicRendererThreadManager.cs (1)
294inkingThread.SetApartmentState(ApartmentState.STA);
System\Windows\Input\TextServicesContext.cs (1)
46Debug.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.STA, "SetDispatcherThreaad on MTA thread");
System\Windows\Media\Effects\BitmapEffect.cs (1)
26if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA)
System\Windows\OleServicesContext.cs (5)
89if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 112if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 125if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 141if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA) 172if (Thread.CurrentThread.GetApartmentState() != ApartmentState.STA)
PresentationFramework (3)
System\Windows\Documents\TextServicesHost.cs (1)
61Debug.Assert(Thread.CurrentThread.GetApartmentState() == ApartmentState.STA, "OnRegisterTextStore must be called on STA thread");
System\Windows\Interop\ActiveXHost.cs (1)
83if (Thread.CurrentThread.GetApartmentState() is not ApartmentState.STA)
System\Windows\Shell\JumpList.cs (1)
446Verify.IsApartmentState(ApartmentState.STA);
System.Collections.Concurrent (1)
System\Collections\Concurrent\BlockingCollection.cs (1)
1664((collections.Length == 63) && (Thread.CurrentThread.GetApartmentState() == ApartmentState.STA)))
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
532case ApartmentState.STA:
System.Speech (1)
Internal\SapiInterop\SapiRecognizer.cs (1)
36if (!IsSapi53 && System.Threading.Thread.CurrentThread.GetApartmentState() == System.Threading.ApartmentState.STA)
System.Windows.Forms (13)
System\Windows\Forms\ActiveX\AxHost.cs (2)
182if (Application.OleRequired() != ApartmentState.STA) 3283if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Application.ThreadContext.cs (1)
573return _externalOleInit ? ApartmentState.MTA : ApartmentState.STA;
System\Windows\Forms\Control.cs (1)
10352if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (2)
159if (Application.OleRequired() != ApartmentState.STA) 203if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropTargetManager.cs (1)
170if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Controls\WebBrowser\WebBrowserBase.cs (2)
72if (Application.OleRequired() != ApartmentState.STA) 1209if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Dialogs\CommonDialogs\FileDialog.cs (1)
728if (Control.CheckForIllegalCrossThreadCalls && Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Dialogs\CommonDialogs\FolderBrowserDialog.cs (1)
448if (Control.CheckForIllegalCrossThreadCalls && Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\OLE\WinFormsOleServices.cs (1)
30if (Application.OleRequired() != ApartmentState.STA)
System\Windows\Forms\Printing\PrintControllerWithStatusDialog.BackgroundThread.cs (1)
25_thread.SetApartmentState(ApartmentState.STA);