Open sandboxFocus

Method DetachChild

DetachChild(object, object, ChildInfo)

Detaches an object as a child of the current node.

Declaration
object DetachChild(object state, object child, ChildInfo childInfo)
Parameters
Type Name Description
object state

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

object child

The object that must be detached as a child as the current node.

ChildInfo childInfo
Returns
Type Description
object

The former effective parent of child, or null if the child is still attached to the parent through another relationship.