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: 2023.0.3.0 (2023.0.3.0)
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: ObjectThe former effective parent of child, or null if the child is still attached to the parent through another relationship.