Classe ClaimsPrincipalPermission
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.
Espace de noms: Microsoft.IdentityModel.Claims
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)
Utilisation
Dim instance As ClaimsPrincipalPermission
Syntaxe
'Déclaration
<SerializableAttribute> _
Public NotInheritable Class ClaimsPrincipalPermission
Implements IPermission, ISecurityEncodable, IUnrestrictedPermission
[SerializableAttribute]
public sealed class ClaimsPrincipalPermission : IPermission, ISecurityEncodable, IUnrestrictedPermission
[SerializableAttribute]
public ref class ClaimsPrincipalPermission sealed : IPermission, ISecurityEncodable, IUnrestrictedPermission
/** @attribute SerializableAttribute() */
public final class ClaimsPrincipalPermission implements IPermission, ISecurityEncodable,
IUnrestrictedPermission
SerializableAttribute
public final class ClaimsPrincipalPermission implements IPermission, ISecurityEncodable,
IUnrestrictedPermission
Hiérarchie d'héritage
System.Object
Microsoft.IdentityModel.Claims.ClaimsPrincipalPermission
Cohérence de thread
Tous les membres statiques publics (partagés dans Visual Basic) de ce type sont thread-safe.Il n'est pas garanti que les membres d'instance soient thread-safe.
Plateformes
Plateformes de développement
Windows Server 2003, Windows Vista
Target Platforms
Windows Server 2008, Windows Vista, Not tested on Windows XP
Voir aussi
Référence
Membres ClaimsPrincipalPermission
Espace de noms Microsoft.IdentityModel.Claims