System.Security.Permissions.PrincipalPermission: Method Members

The methods of System.Security.Permissions.PrincipalPermission are listed below. For a list of all members, see the PrincipalPermission Members list.

See Also: Inherited members from System.Object

Public Methods

Copy() : System.Security.IPermission

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.

override
Equals(object) : bool

Determines whether the specified System.Security.Permissions.PrincipalPermission object is equal to the current System.Security.Permissions.PrincipalPermission.

FromXml(System.Security.SecurityElement)

Reconstructs a permission with a specified state from an XML encoding.

override
GetHashCode() : int

Gets a hash code for the System.Security.Permissions.PrincipalPermission object that is suitable for use in hashing algorithms and data structures such as a hash table.

Intersect(System.Security.IPermission) : System.Security.IPermission

Creates and returns a permission that is the intersection of the current permission and the specified permission.

IsSubsetOf(System.Security.IPermission) : bool

Determines whether the current permission is a subset of the specified permission.

IsUnrestricted() : bool

Returns a value indicating whether the current permission is unrestricted.

override
ToString() : string

Creates and returns a string representing the current permission.

ToXml() : System.Security.SecurityElement

Creates an XML encoding of the permission and its current state.

Union(System.Security.IPermission) : System.Security.IPermission

Creates a permission that is the union of the current permission and the specified permission.