Freigeben über


ClaimsPrincipalPermission Class

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.

Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Verwendung

    Dim instance As ClaimsPrincipalPermission

Syntax

'Declaration
<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

Vererbungshierarchie

System.Object
  Microsoft.IdentityModel.Claims.ClaimsPrincipalPermission

Threadsicherheit

Beliebige öffentliche, statische (Freigegebene in Visual Basic) Member dieses Typs sind threadsicher. Bei Instanzmembern ist die Threadsicherheit nicht gewährleistet.

Plattformen

Entwicklungsplattformen

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2008, Windows Vista, Not tested on Windows XP

Siehe auch

Referenz

ClaimsPrincipalPermission Members
Microsoft.IdentityModel.Claims Namespace