Table of Contents

Class RequireAccessLevelAttribute

Namespace
Tharga.Team
Assembly
Tharga.Team.dll

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

minimumLevel AccessLevel

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

AuditMode

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; }

Property Value

AccessLevel