20 references to GetApartmentState
Microsoft.Build (2)
Instance\RunningObjectTable.cs (2)
31
if (Thread.CurrentThread.
GetApartmentState
() == ApartmentState.MTA)
60
if (Thread.CurrentThread.
GetApartmentState
() == ApartmentState.MTA)
Microsoft.VisualBasic.Forms (1)
Microsoft\VisualBasic\Interaction.vb (1)
221
If Thread.CurrentThread.
GetApartmentState
() <> ApartmentState.STA Then
PresentationCore (10)
System\Windows\Input\InputManager.cs (1)
142
if(Thread.CurrentThread.
GetApartmentState
() != ApartmentState.STA)
System\Windows\Input\InputProcessorProfiles.cs (1)
62
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\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 (4)
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\Standard\Debug.cs (1)
338
if (Thread.CurrentThread.
GetApartmentState
() != expectedState)
System\Windows\Standard\Verify.cs (1)
40
if (Thread.CurrentThread.
GetApartmentState
() != requiredState)
System.Collections.Concurrent (1)
System\Collections\Concurrent\BlockingCollection.cs (1)
1663
((collections.Length == 63) && (Thread.CurrentThread.
GetApartmentState
() == ApartmentState.STA)))
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs (1)
509
get =>
GetApartmentState
();
System.Windows.Forms.UI.IntegrationTests (1)
Infra\ControlTestBase.cs (1)
71
if (Thread.CurrentThread.
GetApartmentState
() == ApartmentState.STA)