Class SettingsPolicyClassAttribute
- Namespace
- MailFathom.Infrastructure.Policies
- Assembly
- MailFathom.Infrastructure.dll
Marks a property of a governed record as belonging to a class other than the ordinary one.
[AttributeUsage(AttributeTargets.Property)]
public sealed class SettingsPolicyClassAttribute : Attribute
- Inheritance
-
SettingsPolicyClassAttribute
- Inherited Members
Remarks
Stated on the property where the record's own type declares it, so the set of governable properties follows the type and no list is kept beside it: a property nobody marked is an ordinary one, which is the right answer for nearly every setting a later release adds. A secret block needs no mark, because it is recognized by the type it binds as. Declared in this assembly rather than beside the policy's administration because a governed record's settings are declared in two — the host's own options and the bindable shapes here — and a mark has to be reachable from both.
Constructors
- SettingsPolicyClassAttribute(SettingsPolicyPropertyClass)
Marks a property of a governed record as belonging to a class other than the ordinary one.
Properties
- PropertyClass
Gets the class the marked property belongs to.