ParentAttribute Class |
System.Attribute
PostSharp.Patterns.Model.MemberRelationshipAttribute
PostSharp.Patterns.Model.ParentAttribute
Namespace: PostSharp.Patterns.Model
Assembly: PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 2023.0.3.0 (2023.0.3.0)
public sealed class ParentAttribute : MemberRelationshipAttribute
The ParentAttribute type exposes the following members.
Name | Description | |
---|---|---|
ParentAttribute | Initializes a new instance of the ParentAttribute class |
Name | Description | |
---|---|---|
CompileTimeValidate |
Method invoked at build time to ensure that the aspect has been applied to
the right target.
(Inherited from MemberRelationshipAttribute.) |
It is recommended to add this custom attribute only to private fields or automatic properties with a private setter.