PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / IAttacher Interface / IAttacher Methods / IAttacher.​Detach­Child Method

IAttacher.DetachChild Method

Detaches an object as a child of the current node.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 6.9.11.0 (6.9.11.0)
Syntax
C#
Object DetachChild(
	Object state,
	Object child,
	ChildInfo childInfo
)

Parameters

state
Type: System.Object
The opaque state object passed to AttachToParent(RelationshipInfo, IAttacher, Object).
child
Type: System.Object
The object that must be detached as a child as the current node.
childInfo
Type: PostSharp.Patterns.Model.ChildInfo

Return Value

Type: Object
The former effective parent of child, or null if the child is still attached to the parent through another relationship.
See Also