System.Security.IPermission

Defines methods implemented by permission types.

See Also: IPermission Members

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public interface IPermission : ISecurityEncodable

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.

Note:

If you write a new permission, you must implement this interface in your class.

Note:

A permission can be accessed by multiple threads. When implementing this interface, you must guarantee that the IPermission.IsSubsetOf(IPermission), IPermission.Intersect(IPermission), IPermission.Union(IPermission), and IPermission.Copy method implementations are thread safe.

Requirements

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