PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelAggregatable­Attribute­Target­ClassOn­Child­Detached
Open sandboxFocus

AggregatableAttributeTargetClass.OnChildDetached Method

OnChildDetached(Object, ChildInfo)

Method invoked when a child has been detached from the current object.

protected virtual void OnChildDetached(object child, ChildInfo childInfo)
Type Name Description
Object child

The child that has just been detached from the current object.

ChildInfo childInfo

Information about the location (field or collection item, typically) to which the child is assigned and about the relationship of the current node relatively to the parent node.


If child is the child of the current object through several relationships, this method is only invoked after the last relationship has been unset.