// Author:
// Sebastien Pouliot <sebastien@ximian.com>
//
-// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2005, 2009 Novell, Inc (http://www.novell.com)
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-
namespace System.Security {
+#if NET_2_1
+
[AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Module | AttributeTargets.Class | AttributeTargets.Struct |
AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Property |
AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate,
AllowMultiple=false, Inherited=false)]
- [MonoTODO ("Not supported by the runtime")]
+ public sealed class SecurityCriticalAttribute : Attribute {
+
+ public SecurityCriticalAttribute ()
+ {
+ }
+ }
+
+#else
+ [MonoTODO ("Only supported by the runtime when CoreCLR is enabled")]
+ [AttributeUsage (AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct |
+ AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method |
+ AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Delegate,
+ AllowMultiple=false, Inherited=false)]
public sealed class SecurityCriticalAttribute : Attribute {
private SecurityCriticalScope _scope;
}
}
+ [Obsolete]
public SecurityCriticalScope Scope {
get { return _scope; }
}
}
-}
-
#endif
+}