BCL mscorlib [00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00 ] 1.0.5000.0 2.0.0.0 4.0.0.0 All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe. System.Security.Permissions.CodeAccessSecurityAttribute System.AttributeUsage(System.AttributeTargets.Assembly | System.AttributeTargets.Class | System.AttributeTargets.Struct | System.AttributeTargets.Constructor | System.AttributeTargets.Method | System.AttributeTargets.All, AllowMultiple=true, Inherited=false) System.Runtime.InteropServices.ComVisible(true)

In the following example, the attribute target is an assembly. The attribute declares that the ability to assert permissions on behalf of callers is the minimum permission required for the assembly to execute.

[assembly:SecurityPermissionAttribute(SecurityAction.RequestMinimum, Assertion=true)]

The scope of the declaration that is allowed depends on the that is used.

The security information declared by a security attribute is stored in the metadata of the attribute target and is accessed by the system at run time. Security attributes are used only for declarative security. For imperative security, use the corresponding permission class.

When you use the class, follow the security action with the permission(s) that are being requested. Each security permission that can be requested, as defined in the enumeration, has a corresponding property in the class. For example, to demand the ability to access unmanaged code, follow the demand statement with the property setting that is being requested, as follows: SecurityPermissionAttribute(SecurityAction.Demand, UnmanagedCode=true).

An exception to the equivalence between the enumeration and the properties is that the enumeration value is represented by the property (inherited from the class). To demand all security permissions, specify Unrestricted=true.

Allows security actions for to be applied to code using declarative security. This class cannot be inherited.

- Constructor
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  To be added.
  is not a valid value.

  Initializes a new instance of the class with the specified .

  One of the values.
  0
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added. To be added.

  Gets or sets a value indicating whether permission to assert that all this code's callers have the requisite permission for the operation is declared.

- Property
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  This permission allows redirection of .NET Framework assemblies that have been unified, as well as other assemblies found outside the .NET Framework.

  Gets or sets a value that indicates whether code has permission to perform binding redirection in the application configuration file.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added. To be added.

  Gets or sets a value indicating whether permission to manipulate is declared.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added. To be added.

  Gets or sets a value indicating whether permission to alter or manipulate domain security policy is declared.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added. To be added.

  Gets or sets a value indicating whether permission to alter or manipulate evidence is declared.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added. To be added.

  Gets or sets a value indicating whether permission to view and manipulate security policy is declared.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  For more information, see [<topic://cpconprincipal>].

  Gets or sets a value indicating whether permission to manipulate the current principal is declared.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  For more information, see .

  Gets or sets a value indicating whether permission to manipulate threads is declared.

- Method
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Security.IPermission

  This method should only be called by the security system, never by application code.

  At compile time, attributes convert security declarations to a serialized form in metadata. Declarative security data in metadata is created from the permission that this method returns that corresponds to this attribute.

  Creates and returns a new .

  A that corresponds to this attribute.

  0
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  A demand for permission at the assembly level is ignored. If an assembly has the right to execute, permission is automatically granted, and setting the property to either true or false has no effect.

  Gets or sets a value indicating whether permission to execute code is declared.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Security.Permissions.SecurityPermissionFlag

  One or more values. To specify multiple values in a set operation, use the bitwise OR operator.

  To be added.

  Gets or sets all permission flags comprising the permissions.

  0
- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Runtime.InteropServices.ComVisible(true)
  System.Boolean To be added. To be added.

  Gets or sets a value indicating whether code can plug into the common language runtime infrastructure, such as adding Remoting Context Sinks, Envoy Sinks and Dynamic Sinks.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added. To be added.

  Gets or sets a value indicating whether code can configure remoting types and channels.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added. To be added.

  Gets or sets a value indicating whether code can use a serialization formatter to serialize or deserialize an object.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added.

  This is a powerful permission that should be granted only to highly trusted code.

  For information on the use of , see [<topic://cpcontypesafetysecurity>].

  Gets or sets a value indicating whether permission to bypass code verification is declared.

- Property
  1.0.5000.0
  2.0.0.0
  4.0.0.0
  System.Boolean To be added. To be added.

  Gets or sets a value indicating whether permission to call unmanaged code is declared.

0