public abstract void EnsureState ();
+#if MONO_FEATURE_MULTIPLE_APPDOMAINS
public bool IsStateAvailable ()
{
AppDomainManager adm = AppDomain.CurrentDomain.DomainManager;
return false;
return adm.CheckSecuritySettings (this);
}
+#else
+ [Obsolete ("SecurityState.IsStateAvailable is not supported on this platform.", true)]
+ public bool IsStateAvailable ()
+ {
+ throw new PlatformNotSupportedException ("SecurityState.IsStateAvailable is not supported on this platform.");
+ }
+#endif // MONO_FEATURE_MULTIPLE_APPDOMAINS
}
}