Checks if the current principal is authorized to perform the given action on the given resource.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim resource As String
Dim action As String

ClaimsPrincipalPermission.CheckAccess(resource, action)

Syntax

Visual Basic
Public Shared Sub CheckAccess ( _
		resource As String, _
		action As String _
)
C#
public static void CheckAccess (
		string resource,
		string action
)
C++
public:
static void CheckAccess (
		String^ resource, 
		String^ action
)
J#
public static void CheckAccess (
		String resource, 
		String action
)
JScript
public static function CheckAccess (
		resource : String, 
		action : String
)

Parameters

resource

The resource requested by the principal.

action

The action requested by the principal.

Exceptions

Exception type Condition

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

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

See Also