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