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

AggregatableAttributeTargetClass.OnChildAttached Method

OnChildAttached(Object, ChildInfo)

Method invoked when a child has been attached to the current object.

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

The child that has just been attached to 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 first relationship has been set.