Méthode | Description | |
---|---|---|
CheckAccess ( string action, string resource ) : bool |
Calls ClaimsAuthorizationManager.
|
|
ClaimPermission ( string resource, string action ) : System |
Initializes a new instance of the ClaimPermission class.
|
|
ClaimPermission ( string resourceType, string resource, string actionType, string action ) : System |
Initializes a new instance of the ClaimPermission class.
|
|
Copy ( ) : IPermission |
Creates and returns an identical copy of the current permission.
|
|
Demand ( ) : void |
Throws a T:System.Security.SecurityException at run time if the security requirement is not met.
|
|
FromXml ( |
Reconstructs a security object with a specified state from an XML encoding.
|
|
Intersect ( IPermission target ) : IPermission |
Creates and returns a permission that is the intersection of the current permission and the specified permission.
|
|
IsSubsetOf ( IPermission target ) : bool |
Determines whether the current permission is a subset of the specified permission.
|
|
IsUnrestricted ( ) : bool |
Returns a value indicating whether unrestricted access to the resource protected by the permission is allowed.
|
|
ToXml ( ) : |
Creates an XML encoding of the security object and its current state.
|
|
Union ( IPermission target ) : IPermission |
Creates a permission that is the union of the current permission and the specified permission.
|
Méthode | Description | |
---|---|---|
ClaimPermission ( IEnumerable |
||
CreateAuthorizationContext ( |
||
ThrowSecurityException ( ) : void |
public static CheckAccess ( string action, string resource ) : bool | ||
action | string | The action. |
resource | string | The resource. |
Résultat | bool |
public ClaimPermission ( string resource, string action ) : System | ||
resource | string | The resource. |
action | string | The action. |
Résultat | System |
public ClaimPermission ( string resourceType, string resource, string actionType, string action ) : System | ||
resourceType | string | Type of the resource. |
resource | string | The resource. |
actionType | string | Type of the action. |
action | string | The action. |
Résultat | System |
public FromXml ( |
||
e | The XML encoding to use to reconstruct the security object. | |
Résultat | void |
public Intersect ( IPermission target ) : IPermission | ||
target | IPermission | A permission to intersect with the current permission. It must be of the same type as the current permission. |
Résultat | IPermission |
public IsSubsetOf ( IPermission target ) : bool | ||
target | IPermission | A permission that is to be tested for the subset relationship. This permission must be of the same type as the current permission. |
Résultat | bool |
public Union ( IPermission target ) : IPermission | ||
target | IPermission | A permission to combine with the current permission. It must be of the same type as the current permission. |
Résultat | IPermission |