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

IConcurrencyController.RequireAccess Method

Determines whether the current thread has a specified level of access to the entity and throws an exception if not.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.2.13.0 (6.2.13.0)
Syntax
C#
void RequireAccess(
	ObjectAccessLevel objectAccessLevel
)

Parameters

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