Class RequireAccessLevelAttribute
Declares the minimum access level required to call this method.
[AttributeUsage(AttributeTargets.Method)]
public class RequireAccessLevelAttribute : Attribute
- Inheritance
-
RequireAccessLevelAttribute
- Inherited Members
Constructors
RequireAccessLevelAttribute(AccessLevel)
public RequireAccessLevelAttribute(AccessLevel minimumLevel)
Parameters
minimumLevelAccessLevel
Properties
Audit
Whether calls to this method are recorded in the audit log. Defaults to
Default, which defers to the host's AuditOptions.DefaultAuditMode.
public AuditMode Audit { get; set; }
Property Value
Remarks
Behaves identically to Audit. The two enforcement points are deliberately not allowed to differ on this: a method's audit rule should not depend on which kind of check happens to guard it.
MinimumLevel
public AccessLevel MinimumLevel { get; }