Mono Class Library: System.Security Namespace

System.Security.CodeAccessPermission Class

Serves as the base class for all code access permissions. [Edit]

See Also: CodeAccessPermission Members

[System.Runtime.InteropServices.ComVisible(true)]
public abstract class CodeAccessPermission : IPermission, IStackWalk

Thread Safety

All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.

Remarks

Note:

Classes derived from System.Security.CodeAccessPermission are required to override the following methods of the System.Security.CodeAccessPermission class:

In addition, classes derived from System.Security.CodeAccessPermission are required to implement a constructor that takes a System.Security.Permissions.PermissionState as its only parameter.

The XML encoding of a System.Security.CodeAccessPermission instance is defined below in EBNF format. The following conventions are used:

The following meta-language symbols are used:

ClassName is the name of the class implementing the permission, such as System.Security.Permissions.EnvironmentPermission.

AssemblyName is the name of the assembly that contains the class implementing the permission, such as mscorlib.

Version is the three part version number indicating the version of the assembly implementing the permission, such as 1.0.1.

StrongNamePublicKeyToken is the strong name public key token constituting the strong name of the assembly that implements the permission.

PermissionAttributes is any attribute and attribute value on the System.Security.IPermission element used by the permission to represent a particular permission state, for example, unrestricted="true".

PermissionXML is any valid XML used by the permission to represent permission state.

The XML encoding of a System.Security.CodeAccessPermission instance is as follows:

CodeAccessPermissionXML::=
<IPermission class="
ClassName,
AssemblyName,
Version=Version,
Culture=neutral,
PublicKeyToken=StrongNamePublicKeyToken"
version="1"
(PermissionAttributes)*
>
(PermissionXML)?
</IPermission>
[Edit]

Requirements

Namespace: System.Security
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0