PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / Aggregatable­Attribute­Target­Class Class

AggregatableAttributeTargetClass Class

Describes the members that are introduced or overridden by the AggregatableAttribute aspect. You can define one or many of these members in classes that are the target of AggregatableAttribute to reacts to events of the Aggregatable pattern.
Inheritance Hierarchy

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: (
public class AggregatableAttributeTargetClass

The AggregatableAttributeTargetClass type exposes the following members.

Protected methodOnAncestorChanged
Method invoked when an ancestor of the current object has changed. Implement this method only if the target class of AggregatableAttribute implements the IAggregatable interface. For other use cases, subscribe to the AncestorChanged event.
Protected methodOnChildAttached
Method invoked when a child has been attached to the current object.
Protected methodOnChildDetached
Method invoked when a child has been detached from the current object.
Protected methodOnParentChanged
Method invoked when the Parent of the current object has been changed.
Public methodVisitChildren
Executes an action for all direct children of the current object. Implement this method in the target class of AggregatableAttribute if you want to provide children objects that are not managed by the AggregatableAttribute aspect.
Extension Methods
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Note Note
This class it for documentation purpose only, and should not be used in code.

Additionally to declaring the members documented in this class, target classes of the AggregatableAttribute can also implement the IAttachable interface, which adds Attach and Detach semantics to the IAggregatable class.

See Also