28 references to GetApartmentState
mscorlib (2)
system\applicationactivator.cs (2)
96
if (Thread.CurrentThread.
GetApartmentState
() != ApartmentState.Unknown && Thread.CurrentThread.
GetApartmentState
() != m_apt)
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 (3)
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\Standard\Debug.cs (1)
340
if (Thread.CurrentThread.
GetApartmentState
() != expectedState)
src\Framework\System\Windows\Standard\Verify.cs (1)
41
if (Thread.CurrentThread.
GetApartmentState
() != requiredState)
System (3)
compmod\microsoft\win32\SystemEvents.cs (1)
572
if (!UserInteractive || Thread.CurrentThread.
GetApartmentState
() == ApartmentState.STA) {
services\monitoring\system\diagnosticts\Process.cs (1)
2855
if( Thread.CurrentThread.
GetApartmentState
() != ApartmentState.STA) {
sys\system\collections\concurrent\BlockingCollection.cs (1)
1765
return Thread.CurrentThread.
GetApartmentState
() == ApartmentState.STA;
System.Data (1)
fx\src\data\System\Data\OleDb\OleDbConnectionInternal.cs (1)
687
if (ApartmentState.Unknown == Thread.CurrentThread.
GetApartmentState
()) {
System.Management (1)
InteropClasses\WMIInterop.cs (1)
2100
if(Thread.CurrentThread.
GetApartmentState
() != ApartmentState.MTA)
System.ServiceModel (1)
System\ServiceModel\Administration\WbemProvider.cs (1)
1059
if (Thread.CurrentThread.
GetApartmentState
() != ApartmentState.MTA)
WindowsBase (3)
Base\MS\Internal\Verify.cs (1)
35
if (Thread.CurrentThread.
GetApartmentState
() != requiredState)
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!");