Open sandboxFocus

Method OnChildDetached

OnChildDetached(object, object, object, ChildInfo)

This method is invoked when a child has been detached from the current node.

Declaration
void OnChildDetached(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 former actual parent of child. If child was assigned to a parent surrogate, the parameter is set to the former 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 was assigned and about the relationship of the current node relative to the parent node.