PostSharp 6.7 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Model Namespace / IAttacher Interface / IAttacher Methods / IAttacher.​On­Child­Detached Method

IAttacher.OnChildDetached Method

Method invoked when a child has been detached from the current node.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 6.7.12.0 (6.7.12.0)
Syntax
C#
void OnChildDetached(
	Object state,
	Object parent,
	Object child,
	ChildInfo childInfo
)

Parameters

state
Type: System.Object
The opaque state object passed to AttachToParent(RelationshipInfo, IAttacher, Object).
parent
Type: System.Object
The former actual parent of child. If child was assigned to a parent surrogate, the parameter is set to the former actual parent, i.e. to the parent of the parent surrogate.
child
Type: System.Object
The child object.
childInfo
Type: PostSharp.Patterns.Model.ChildInfo
Information about the location (field or collection item, typically) to which the child was assigned and about the relationship of the current node relatively to the parent node.
See Also