Open sandboxFocus

Method OnChildAttached

OnChildAttached(object, object, object, ChildInfo)

This method is invoked after a child has been successfully attached to the current node.

Declaration
void OnChildAttached(object state, object parent, object child, ChildInfo childInfo)
Parameters
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, that is, 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 relative to the parent node.