Constructeur AuthorizationContext (IClaimsPrincipal, String, String)
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 String Dim action As String Dim instance As New AuthorizationContext(principal, resource, action)
Syntaxe
'Déclaration
Public Sub New ( _
principal As IClaimsPrincipal, _
resource As String, _
action As String _
)
public AuthorizationContext (
IClaimsPrincipal principal,
string resource,
string action
)
public:
AuthorizationContext (
IClaimsPrincipal^ principal,
String^ resource,
String^ action
)
public AuthorizationContext (
IClaimsPrincipal principal,
String resource,
String action
)
public function AuthorizationContext (
principal : IClaimsPrincipal,
resource : String,
action : String
)
Paramètres
- principal
The principal to be authorized.
- resource
The resource to be authorized for.
- 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