# System.Security.Permissions

``` diff
 namespace System.Security.Permissions {
     [AttributeUsageAttribute(109, AllowMultiple=true, Inherited=false)]
     [ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
     public sealed class ReflectionPermissionAttribute : CodeAccessSecurityAttribute {
-        [ObsoleteAttribute]
-        public bool ReflectionEmit { get; set; }
+        [ObsoleteAttribute("ReflectionPermissionAttribute.ReflectionEmit has been deprecated and is not supported.")]
+        public bool ReflectionEmit { get; set; }
-        [ObsoleteAttribute]
-        public bool TypeInformation { get; set; }
+        [ObsoleteAttribute("ReflectionPermissionAttribute.TypeInformation has been deprecated and is not supported.")]
+        public bool TypeInformation { get; set; }
     }
     [FlagsAttribute]
     [ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
     public enum ReflectionPermissionFlag {
-        [ObsoleteAttribute]
-        AllFlags = 7,
+        [ObsoleteAttribute("ReflectionPermissionFlag.AllFlags has been deprecated. Use PermissionState.Unrestricted to get full access.")]
+        AllFlags = 7,
-        [ObsoleteAttribute]
-        ReflectionEmit = 4,
+        [ObsoleteAttribute("ReflectionPermissionFlag.ReflectionEmit  has been deprecated and is not supported.")]
+        ReflectionEmit = 4,
-        [ObsoleteAttribute]
-        TypeInformation = 1,
+        [ObsoleteAttribute("ReflectionPermissionFlag.TypeInformation has been deprecated and is not supported.")]
+        TypeInformation = 1,
     }
     [AttributeUsageAttribute(109, AllowMultiple=true, Inherited=false)]
     [ObsoleteAttribute("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
     public sealed class RegistryPermissionAttribute : CodeAccessSecurityAttribute {
-        [ObsoleteAttribute]
-        public string All { get; set; }
+        [ObsoleteAttribute("RegistryPermissionAttribute.Add has been deprecated. Use ViewAndModify instead.")]
+        public string All { get; set; }
     }
 }
```

