[Test] Avoid MethodInfoTest.GetMethodBody failure when executed on a release (IL...
[mono.git] / mcs / class / corlib / System.Security.Permissions / SecurityAction.cs
index c85ec5dc773e11acddc38a2020b4c700bfe784e3..f45abac05ea7ae3e0229a172fba7c827b59acff4 100644 (file)
@@ -35,19 +35,32 @@ using System.Runtime.InteropServices;
 
 namespace System.Security.Permissions {
 
-#if NET_2_0 || BOOTSTRAP_NET_2_0
+#if NET_2_1 && !MONOTOUCH
+       [Obsolete ("CAS support is not available with Silverlight applications.")]
+#endif
        [ComVisible (true)]
        [Serializable]
-#endif
        public enum SecurityAction {
                Demand = 2,
                Assert = 3,
+#if NET_4_0
+               [Obsolete ("This requests should not be used")]
+#endif
                Deny = 4,
                PermitOnly = 5,
                LinkDemand = 6,
                InheritanceDemand = 7,
+#if NET_4_0
+               [Obsolete ("This requests should not be used")]
+#endif
                RequestMinimum = 8,
+#if NET_4_0
+               [Obsolete ("This requests should not be used")]
+#endif
                RequestOptional = 9,
+#if NET_4_0
+               [Obsolete ("This requests should not be used")]
+#endif
                RequestRefuse = 10,
        }
 }