[System] Process.WaitForExit now triggers event Exited.
[mono.git] / mcs / class / corlib / System.Security / SecurityCriticalAttribute.cs
index a95be0dad319139fbf454d61a37f3c7b0dba8e2d..ed01b54abde7f1cd0b27207343e575d66c4f7a0d 100644 (file)
@@ -43,17 +43,10 @@ namespace System.Security {
 
 #else
        [MonoTODO ("Only supported by the runtime when CoreCLR is enabled")]
-#if NET_4_0
        [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct |
                AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method |
                AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Delegate,
                AllowMultiple=false, Inherited=false)]
-#else
-       [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct |
-               AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Event |
-               AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Delegate,
-               AllowMultiple=false, Inherited=false)]
-#endif
        public sealed class SecurityCriticalAttribute : Attribute {
 
                private SecurityCriticalScope _scope;
@@ -78,6 +71,7 @@ namespace System.Security {
                        }
                }
 
+               [Obsolete]
                public SecurityCriticalScope Scope {
                        get { return _scope; }
                }