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.
The following tables list the members exposed by the PrincipalPermission type.
|Copy||Creates and returns an identical copy of the current permission.|
|Demand||Determines at run time whether the current principal matches the principal specified by the current permission.|
|FromXml||Reconstructs a permission with a specified state from an XML encoding.|
|GetHashCode||Overridden. Gets a hash code for the PrincipalPermission object that is suitable for use in hashing algorithms and data structures such as a hash table.|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|Intersect||Creates and returns a permission that is the intersection of the current permission and the specified permission.|
|IsSubsetOf||Determines whether the current permission is a subset of the specified permission.|
|IsUnrestricted||Returns a value indicating whether the current permission is unrestricted.|
|ReferenceEquals||Determines whether the specified Object instances are the same instance. (Inherited from Object.)|
|ToString||Overridden. Creates and returns a string representing the current permission.|
|ToXml||Creates an XML encoding of the permission and its current state.|
|Union||Creates a permission that is the union of the current permission and the specified permission.|