Creates an AuthorizationContext with the specified principal, resource, and action.
Пространство имен: Microsoft.IdentityModel.Claims
Сборка: Microsoft.IdentityModel (в microsoft.identitymodel.dll)

Использование

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)

Синтаксис

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>
)

Параметры

principal

The principal to check authorization for.

resource

The resource for checking authorization to.

action

The action to be performed on the resource.

Исключения

Тип исключений Условие

Примечания


Платформы

Платформа разработки

Windows Server 2003, Windows Vista

Target Platforms

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

См. также