PostSharp//API Reference/Post­Sharp.​Patterns.​Threading/IConcurrency­Controller/Check­Access
Open sandboxFocus

Method CheckAccess

CheckAccess(ObjectAccessLevel)

Determines whether the current thread has a specified level of access to the entity.

Declaration
bool CheckAccess(ObjectAccessLevel objectAccessLevel)
Parameters
Type Name Description
ObjectAccessLevel objectAccessLevel

The required access level on the entity.

Returns
Type Description
Boolean

true if the current thread has the required level of access, otherwise false.