Partager via


Constructeur AuthorizationContext (IClaimsPrincipal, Collection générique, Collection générique)

Creates an AuthorizationContext with the specified principal, resource, and action.

Espace de noms: Microsoft.IdentityModel.Claims
Assembly : Microsoft.IdentityModel (dans microsoft.identitymodel.dll)

Utilisation

    Dim principal As IClaimsPrincipal
Dim resource As Collection(Of Claim)
Dim action As Collection(Of Claim)

Dim instance As New AuthorizationContext(principal, resource, action)

Syntaxe

'Déclaration
Public Sub New ( _
    principal As IClaimsPrincipal, _
    resource As Collection(Of Claim), _
    action As Collection(Of Claim) _
)
public AuthorizationContext (
    IClaimsPrincipal principal,
    Collection<Claim> resource,
    Collection<Claim> action
)
public:
AuthorizationContext (
    IClaimsPrincipal^ principal, 
    Collection<Claim^>^ resource, 
    Collection<Claim^>^ action
)
public AuthorizationContext (
    IClaimsPrincipal principal, 
    Collection<Claim> resource, 
    Collection<Claim> action
)
public function AuthorizationContext (
    principal : IClaimsPrincipal, 
    resource : Collection<Claim>, 
    action : Collection<Claim>
)

Paramètres

  • principal
    The principal to check authorization for.
  • resource
    The resource for checking authorization to.
  • action
    The action to be performed on the resource.

Exceptions

Type d'exception Condition

Remarques

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

Classe AuthorizationContext
Membres AuthorizationContext
Espace de noms Microsoft.IdentityModel.Claims