[System] Process.WaitForExit now triggers event Exited.
[mono.git] / mcs / class / corlib / System.Security / SecurityTreatAsSafeAttribute.cs
index ba17e6db65d708bb2c2dfa9c2a4f6c2f79bc873e..b86b369c74b5341b5444e51d4b285df25a8dd2ff 100644 (file)
 // 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