SecurityPermission
Class
Definition
Describes a set of security permissions applied to code. This class cannot be inherited.
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class SecurityPermission : System.Security.CodeAccessPermission, System.Security.Permissions.IUnrestrictedPermission
- Inheritance
- Attributes
- Implements
Inherited Members
System.Object
System.Security.CodeAccessPermission
Remarks
This permission uses the SecurityPermissionFlag enumeration. The values for this enumeration can be found in its documentation.
Constructors
| SecurityPermission(PermissionState) |
Initializes a new instance of the SecurityPermission class with either restricted or unrestricted permission as specified. |
| SecurityPermission(SecurityPermissionFlag) |
Initializes a new instance of the SecurityPermission class with the specified initial set state of the flags. |
Properties
| Flags |
Gets or sets the security permission flags. |
Methods
| Copy() |
Creates and returns an identical copy of the current permission. |
| FromXml(SecurityElement) |
Reconstructs a permission with a specified state from an XML encoding. |
| Intersect(IPermission) |
Creates and returns a permission that is the intersection of the current permission and the specified permission. |
| IsSubsetOf(IPermission) |
Determines whether the current permission is a subset of the specified permission. |
| IsUnrestricted() |
Returns a value indicating whether the current permission is unrestricted. |
| ToXml() |
Creates an XML encoding of the permission and its current state. |
| Union(IPermission) |
Creates a permission that is the union of the current permission and the specified permission. |