PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelIAggregatableAncestor­Changed
Open sandboxFocus

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.dll
event EventHandler<AncestorChangedEventArgs> AncestorChanged
Type Description

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