ObjectAccessLevel Enumeration |
Enumeration of access levels that methods of execution scopes can require on an object.
Namespace: PostSharp.Patterns.ModelAssembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 4.3.48.0 (4.3.48.0)

C#
public enum ObjectAccessLevel

Member name | Value | Description | |
---|---|---|---|
None | 0 | None. | |
Unknown | 1 | The required access level is unknown; maximal access is required. | |
Read | 2 | Read-only. | |
Write | 3 | Read-write. | |
UpgradeableRead | 4 | Read-only access that prevents other threads from acquiring Write or UpgradeableRead access. | |
Unchecked | 5 | Disables all runtime verification of access permissions. | |
Yield | 6 | Indicates that the control flow is passed to another object. | |
Inherit | 7 | Indicates that the access level is inherited from the outer scope. |
