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
Syntax
event EventHandler<AncestorChangedEventArgs> AncestorChanged
Returns
Type | Description |
---|---|
EventHandler<AncestorChangedEventArgs> | Occurs when any ancestor changes. An ancestor is the parent of the current object or the parent of an ancestor of the current object. |
Remarks
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