See Also: SecurityPermission Members
System.Object
System.Security.CodeAccessPermission
System.Security.Permissions.SecurityPermission
All public static members of this type are safe for multithreaded operations. No instance members are guaranteed to be thread safe.
The System.Security.Permissions.SecurityPermissionFlag enumeration defines the permissions secured by this class.
The XML encoding of a System.Security.Permissions.SecurityPermission instance is defined below in EBNF format. The following conventions are used:
- All non-literals in the grammar below are shown in normal type.
- All literals are in bold font.
The following meta-language symbols are used:
- '*' represents a meta-language symbol suffixing an expression that can appear zero or more times.
- '?' represents a meta-language symbol suffixing an expression that can appear zero or one time.
- '+' represents a meta-language symbol suffixing an expression that can appear one or more times.
- '(',')' is be used to group literals, non-literals or a mixture of literals and non-literals.
- '|' denotes an exclusive disjunction between two expressions.
- '::= ' denotes a production rule where a left hand non-literal is replaced by a right hand expression containing literals, non-literals or both.
BuildVersion refers to the build version of the shipping CLI. This is a dotted build number such as '2412.0' .
ECMAPubKeyToken ::= b77a5c561934e089
SecurityPermissionFlag = Assertion | ControlThread | Execution | SkipVerification | UnmanagedCode
Each SecurityPermissionFlag literal can appear in the XML no more than once. For example, Flags=Assertion,Assertion is illegal.
SecurityPermission ::=
<IPermission
class="
System.Security.Permissions.SecurityPermission,
mscorlib,
Version=1.0.BuildVersion,
Culture=neutral,
PublicKeyToken=ECMAPubKeyToken"
version="1"
(
Unrestricted="true"
)
|
(
Flags="SecurityPermissionFlag (, SecurityPermissionFlag)* ")
| ()
/>
Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0