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 String
Dim action As String

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

Синтаксис

Visual Basic
Public Sub New ( _
		principal As IClaimsPrincipal, _
		resource As String, _
		action As String _
)
C#
public AuthorizationContext (
		IClaimsPrincipal principal,
		string resource,
		string action
)
C++
public:
AuthorizationContext (
		IClaimsPrincipal^ principal, 
		String^ resource, 
		String^ action
)
J#
public AuthorizationContext (
		IClaimsPrincipal principal, 
		String resource, 
		String action
)
JScript
public function AuthorizationContext (
		principal : IClaimsPrincipal, 
		resource : String, 
		action : String
)

Параметры

principal

The principal to be authorized.

resource

The resource to be authorized for.

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

См. также