This documentation is archived and is not being maintained.

PrincipalPermission Methods

  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
Show: