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

IAttacher.OnChildDetached Method

OnChildDetached(Object, Object, Object, ChildInfo)

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

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