[Serializable] |
Each type of permission clearly defines extreme states representing either all or none of the permissions expressible within the type. Thus, it is possible to create a generic permission in a completely restricted or unrestricted state without knowledge of the particular permission; however, intermediate states can only be set according to the specific permission semantics.
All code access permissions implemented in the .NET Framework can take a PermissionState value as an argument to their constructor.
None | No access to the resource protected by the permission. |
Unrestricted | Full access to the resource protected by the permission. |
Hierarchy: