mscorlib(4.0.0.0) API with additions
SecurityCriticalAttribute.cs
1 namespace System.Security
2 {
4  [AttributeUsage(AttributeTargets.Assembly | AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Constructor | AttributeTargets.Method | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
5  [__DynamicallyInvokable]
6  public sealed class SecurityCriticalAttribute : Attribute
7  {
8  private SecurityCriticalScope _val;
9 
12  [Obsolete("SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.")]
14  {
15  get
16  {
17  return _val;
18  }
19  }
20 
22  [__DynamicallyInvokable]
24  {
25  }
26 
30  {
31  _val = scope;
32  }
33  }
34 }
SecurityCriticalScope Scope
Gets the scope for the attribute.
Represents the base class for custom attributes.
Definition: Attribute.cs:15
Specifies that code or an assembly performs security-critical operations.
SecurityCriticalAttribute()
Initializes a new instance of the T:System.Security.SecurityCriticalAttribute class.
AttributeTargets
Specifies the application elements on which it is valid to apply an attribute.
SecurityCriticalAttribute(SecurityCriticalScope scope)
Initializes a new instance of the T:System.Security.SecurityCriticalAttribute class with the specifie...
SecurityCriticalScope
Specifies the scope of a T:System.Security.SecurityCriticalAttribute.