When implemented in a derived class, this method will authorize the subject specified in the context to perform the specified action on the specified resource.
Namespace: Microsoft.IdentityModel.Claims
Assembly: Microsoft.IdentityModel (in microsoft.identitymodel.dll)

Usage

Visual Basic
Dim instance As ClaimsAuthorizationManager
Dim context As AuthorizationContext
Dim returnValue As Boolean

returnValue = instance.CheckAccess(context)

Syntax

Visual Basic
Public Overridable Function CheckAccess ( _
		context As AuthorizationContext _
) As Boolean
C#
public virtual bool CheckAccess (
		AuthorizationContext context
)
C++
public:
virtual bool CheckAccess (
		AuthorizationContext^ context
)
J#
public boolean CheckAccess (
		AuthorizationContext context
)
JScript
public function CheckAccess (
		context : AuthorizationContext
) : boolean

Parameters

context

Encapsulates the subject, resource, and action.

Return Value

true if authorized, false otherwise.

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