PrincipalPermission Members
Collapse the table of content
Expand the table of content

PrincipalPermission Members

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.

  Name Description
Public method PrincipalPermission Overloaded. Initializes a new instance of the PrincipalPermission class.
Top

  Name Description
Public method Copy Creates and returns an identical copy of the current permission.
Public method Demand Determines at run time whether the current principal matches the principal specified by the current permission.
Public method Equals Overloaded. Overridden.  
Public method FromXml Reconstructs a permission with a specified state from an XML encoding.
Public method 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.
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Intersect Creates and returns a permission that is the intersection of the current permission and the specified permission.
Public method IsSubsetOf Determines whether the current permission is a subset of the specified permission.
Public method IsUnrestricted Returns a value indicating whether the current permission is unrestricted.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ToString Overridden. Creates and returns a string representing the current permission.
Public method ToXml Creates an XML encoding of the permission and its current state.
Public method Union Creates a permission that is the union of the current permission and the specified permission.
Top

Community Additions

ADD
Show:
© 2016 Microsoft