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