Creates an AuthorizationContext with the specified principal, resource, and action.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

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

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

Syntax

Visual Basic
Public Sub New ( _
		principal As IClaimsPrincipal, _
		resource As Collection(Of Claim), _
		action As Collection(Of Claim) _
)
C#
public AuthorizationContext (
		IClaimsPrincipal principal,
		Collection<Claim> resource,
		Collection<Claim> action
)
C++
public:
AuthorizationContext (
		IClaimsPrincipal^ principal, 
		Collection<Claim^>^ resource, 
		Collection<Claim^>^ action
)
J#
public AuthorizationContext (
		IClaimsPrincipal principal, 
		Collection<Claim> resource, 
		Collection<Claim> action
)
JScript
public function AuthorizationContext (
		principal : IClaimsPrincipal, 
		resource : Collection<Claim>, 
		action : Collection<Claim>
)

Parameters

principal

The principal to check authorization for.

resource

The resource for checking authorization to.

action

The action to be performed on the resource.

Exceptions

Exception type Condition

Remarks


Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

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

See Also