X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mcs%2Fclass%2Fcorlib%2FSystem.Security%2FSecurityTreatAsSafeAttribute.cs;h=b86b369c74b5341b5444e51d4b285df25a8dd2ff;hb=5a7a7a0620261a92a871cc587a373752ee516f0e;hp=ba17e6db65d708bb2c2dfa9c2a4f6c2f79bc873e;hpb=a097b5471761180c4aae2dab224ed9caeeae3e86;p=mono.git diff --git a/mcs/class/corlib/System.Security/SecurityTreatAsSafeAttribute.cs b/mcs/class/corlib/System.Security/SecurityTreatAsSafeAttribute.cs index ba17e6db65d..b86b369c74b 100644 --- a/mcs/class/corlib/System.Security/SecurityTreatAsSafeAttribute.cs +++ b/mcs/class/corlib/System.Security/SecurityTreatAsSafeAttribute.cs @@ -26,11 +26,13 @@ // 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 { @@ -40,5 +42,3 @@ namespace System.Security { } } } - -#endif