[Test] Avoid MethodInfoTest.GetMethodBody failure when executed on a release (IL...
[mono.git] / mcs / class / corlib / System.Security.Permissions / SecurityAction.cs
index 118440add13232795b7a63aa67d7535e76748a7f..f45abac05ea7ae3e0229a172fba7c827b59acff4 100644 (file)
@@ -35,27 +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,
-               RequestRefuse = 10,
-#if NET_2_0 || BOOTSTRAP_NET_2_0
-               [Obsolete ("to be removed before 2.0 RTM")]
-               LinkDemandChoice = 16,
-               [Obsolete ("to be removed before 2.0 RTM")]
-               InheritanceDemandChoice = 17,
-               [Obsolete ("to be removed before 2.0 RTM")]
-               DemandChoice = 18
+#if NET_4_0
+               [Obsolete ("This requests should not be used")]
 #endif
+               RequestRefuse = 10,
        }
 }