PostSharpAPI ReferencePost­Sharp.​Patterns.​ModelIAttacherDetach­Child
Open sandboxFocus

IAttacher.DetachChild Method

DetachChild(Object, Object, ChildInfo)

Detaches an object as a child of the current node.

object DetachChild(object state, object child, ChildInfo childInfo)
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
Type Description

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