ClaimsPrincipalPermission Members
ClaimsPrincipalPermission represents the permission required to access a resource. ClaimsPrincipalPermission takes in a string that represents the resource to be accessed, and a string that represents the action to be performed on the resource. When Demand is called, the principal must have the permission to perform the specified action on the specified resource, or Demand throws an exception. This permission is checked by CheckAccess.
In den folgenden Tabellen sind die Mitglieder aufgeführt, die durch den Typ ClaimsPrincipalPermission eingeblendet werden:
Öffentlich Konstruktoren
Name | Beschreibung | |
---|---|---|
ClaimsPrincipalPermission | Creates an instance of the ClaimsPrincipalPermission class. |
Seitenanfang
Öffentlich Methoden
(siehe auch Geschützt Methoden)
Name | Beschreibung | |
---|---|---|
![]() ![]() |
CheckAccess | Checks if the current principal is authorized to perform the given action on the given resource. |
![]() |
Copy | Returns a copy of the current ClaimsPrincipalPermission instance. |
![]() |
Demand | Checks if the policy engine authorizes the current principal to perform the actions on the specified resources. |
![]() |
Equals | Überladen. (Geerbt von Object) |
![]() |
FromXml | Initializes the current instance from the SecurityElement. |
![]() |
GetHashCode | (Geerbt von Object) |
![]() |
GetType | (Geerbt von Object) |
![]() |
Intersect | Returns a new ClaimsPrincipalPermission object that has only those ResourceAction objects which are present in both the current instance and the target instance. |
![]() |
IsSubsetOf | Checks if all the ResourceAction objects contained in the current instance is also present in the target instance. |
![]() |
IsUnrestricted | Returns true if the permission is unrestricted; otherwise, returns false. |
![]() ![]() |
ReferenceEquals | (Geerbt von Object) |
![]() |
ToString | (Geerbt von Object) |
![]() |
ToXml | Returns the XML encoded form of the current instance. |
![]() |
Union | Returns a new ClaimsPrincipalPermission object that has the ResourceAction objects which are present in both the current instance and the target instance. |
Seitenanfang
Geschützt Methoden
Name | Beschreibung | |
---|---|---|
![]() |
Finalize | (Geerbt von Object) |
![]() |
MemberwiseClone | (Geerbt von Object) |
Seitenanfang
Siehe auch
Referenz
ClaimsPrincipalPermission Class
Microsoft.IdentityModel.Claims Namespace
Copyright © 2008 by Microsoft Corporation. Alle Rechte vorbehalten.