#endif // FEATURE_COMINTEROP_APARTMENT_SUPPORT
}
+#if FEATURE_COMINTEROP_APARTMENT_SUPPORT
[SecurityCritical] // auto-generated
protected bool SetApartmentStateHelper(ApartmentState state, bool fireMDAOnMismatch)
{
[SecurityCritical] // auto-generated
[MethodImplAttribute(MethodImplOptions.InternalCall)]
protected extern int SetApartmentStateNative(int state, bool fireMDAOnMismatch);
+#endif // FEATURE_COMINTEROP_APARTMENT_SUPPORT
/*=========================================================================
** Interrupts a thread that is inside a Wait(), Sleep() or Join(). If that
SetApartmentStateNative((int)value, true);
}
}
-#endif // FEATURE_COMINTEROP_APARTMENT_SUPPORT
-#if FEATURE_COMINTEROP_APARTMENT_SUPPORT
[System.Security.SecuritySafeCritical] // auto-generated
[HostProtection(Synchronization=true, SelfAffectingThreading=true)]
public void SetApartmentState(ApartmentState state)
FCFuncElement("GetPriorityNative", ThreadNative::GetPriority)
FCFuncElement("SetPriorityNative", ThreadNative::SetPriority)
FCFuncElement("GetThreadStateNative", ThreadNative::GetThreadState)
-#if !defined(FEATURE_COMINTEROP_APARTMENT_SUPPORT) && !defined(FEATURE_CORECLR)
- FCFuncElement("SetApartmentStateNative", ThreadNative::SetApartmentState)
+#ifdef FEATURE_COMINTEROP_APARTMENT_SUPPORT
FCFuncElement("GetApartmentStateNative", ThreadNative::GetApartmentState)
+ FCFuncElement("SetApartmentStateNative", ThreadNative::SetApartmentState)
#endif // FEATURE_COMINTEROP_APARTMENT_SUPPORT
FCFuncElement("InterruptInternal", ThreadNative::Interrupt)
FCFuncElement("JoinInternal", ThreadNative::Join)