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.

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.