IPermission Interface
Defines methods implemented by permission types.
For a list of all members of this type, see IPermission Members.
System.Security.ISecurityEncodable
System.Security.IPermission
[Visual Basic] Public Interface IPermission Inherits ISecurityEncodable [C#] public interface IPermission : ISecurityEncodable [C++] public __gc __interface IPermission : public ISecurityEncodable [JScript] public interface IPermission implements ISecurityEncodable
Classes that Implement IPermission
| Class | Description |
|---|---|
| CodeAccessPermission | Defines the underlying structure of all code access permissions. |
| PrincipalPermission | Allows checks against the active principal (see IPrincipal) using the language constructs defined for both declarative and imperative security actions. This class cannot be inherited. |
Remarks
Permissions in the common language runtime are objects that describe sets of operations that can be secured for specified resources. A permission object describes operations or access that is subject to security control; it does not represent access or a right to perform operations. Permissions are used by both application code and the .NET Framework security system in the following ways.
- Code requests the permissions it needs in order to run.
- The security system policy grants permissions to code in order for it to run.
- Code demands that calling code has a permission.
- Code overrides the security stack using assert/deny/permit-only.
Note If you write a new permission, you must implement this interface in your class.
Requirements
Namespace: System.Security
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: Mscorlib (in Mscorlib.dll)