// Created: 2002-01-06
//
// Copyright (C) 2001 Nick Drochak, All Rights Reserved
-// Copyright (C) 2004-2005 Novell, Inc (http://www.novell.com)
+// Copyright (C) 2004-2006 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
//
using System.Runtime.InteropServices;
-\r
-namespace System.Security.Permissions {\r
-\r
-#if NET_2_0
- [ComVisible (true)]
+
+namespace System.Security.Permissions {
+
+#if NET_2_1 && !MONOTOUCH
+ [Obsolete ("CAS support is not available with Silverlight applications.")]
#endif
+ [ComVisible (true)]
[AttributeUsage(
AttributeTargets.Assembly
| AttributeTargets.Class
[Serializable]
public abstract class CodeAccessSecurityAttribute : SecurityAttribute {
- public CodeAccessSecurityAttribute (SecurityAction action)
+ protected CodeAccessSecurityAttribute (SecurityAction action)
: base (action)
{
}