PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / IAggregatable Interface / IAggregatable Events / IAggregatable.​Ancestor­Changed Event

IAggregatable.AncestorChanged Event

Occurs when any ancestor changes. An ancestor is the parent of the current object or the parent of an ancestor of the current object.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: (
event EventHandler<AncestorChangedEventArgs> AncestorChanged


Type: System.EventHandler<AncestorChangedEventArgs>

The sender parameter of the event handler will be set to the current object. The Child property of the AncestorChangedEventArgs object will be set to the object whose Parent actually changed. To retrieve the new ancestor, use args.Child.QueryInterface<IAggregatable>.Parent

See Also