PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelIAttacherOn­Child­Attached
Open sandboxFocus

IAttacher.OnChildAttached Method

OnChildAttached(Object, Object, Object, ChildInfo)

Method invoked after a child has been successfully attached to the current node.

void OnChildAttached(object state, object parent, object child, ChildInfo childInfo)
Type Name Description
Object state

The opaque state object passed to AttachToParent(RelationshipInfo, IAttacher, Object).

Object parent

The actual parent of child. If child is assigned to a parent surrogate, the parameter is set to the actual parent, i.e. to the parent of the parent surrogate.

Object child

The child 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.