// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-#if NET_2_0
-
namespace System.Security {
- [AttributeUsage (AttributeTargets.All, AllowMultiple=false, Inherited=false)]
+ [AttributeUsage (AttributeTargets.Delegate | AttributeTargets.Interface | AttributeTargets.Field |
+ AttributeTargets.Method | AttributeTargets.Constructor | AttributeTargets.Enum | AttributeTargets.Struct |
+ AttributeTargets.Class | AttributeTargets.Assembly,
+ AllowMultiple=false, Inherited=false)]
+ [Obsolete ("Use the SecuritySafeCriticalAttribute instead")]
[MonoTODO ("Not supported by the runtime")]
public sealed class SecurityTreatAsSafeAttribute : Attribute {
}
}
}
-
-#endif