System.Security.Permissions.PrincipalPermission Members

The members of System.Security.Permissions.PrincipalPermission are listed below.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Security.Permissions.PrincipalPermission class with the specified System.Security.Permissions.PermissionState.

Initializes a new instance of the System.Security.Permissions.PrincipalPermission class for the specified name and role.

Initializes a new instance of the System.Security.Permissions.PrincipalPermission class for the specified name, role, and authentication status.

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.

Explicitly Implemented Interface Members

System.Security.Permissions.IBuiltInPermission.GetTokenIndexDocumentation for this section has not yet been entered.