Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Reference­Attribute Class

ReferenceAttribute Class

Custom attribute that, when applied to a field or automatic property, specifies that this field or property is a simple reference, and is not involved in a parent-child relationship.
Inheritance Hierarchy
System.Object
  System.Attribute
    PostSharp.Patterns.Model.MemberRelationshipAttribute
      PostSharp.Patterns.Model.ReferenceAttribute

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 5.0.38.0 (5.0.38.0)
Syntax
C#
public sealed class ReferenceAttribute : MemberRelationshipAttribute

The ReferenceAttribute type exposes the following members.

Constructors
  NameDescription
Public methodReferenceAttribute
Initializes a new instance of the ReferenceAttribute class
Methods
  NameDescription
Public methodCompileTimeValidate
Method invoked at build time to ensure that the aspect has been applied to the right target.
(Inherited from MemberRelationshipAttribute.)
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
See Also