PostSharp6.1/API Reference/Post­Sharp.​Patterns.​Threading Namespace/IConcurrency­Controller Interface/IConcurrency­Controller Methods/IConcurrency­Controller.​Check­Access Method

IConcurrencyController.CheckAccess Method

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

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.1.23.0 (6.1.23.0)
Syntax
C#
bool CheckAccess(
	ObjectAccessLevel objectAccessLevel
)

Parameters

objectAccessLevel
Type: PostSharp.Patterns.Model.ObjectAccessLevel
The required access level on the entity.

Return Value

Type: Boolean
true if the current thread has the required level of access, otherwise false.
See Also