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

IAttacher.OnChildAttached Method

Method invoked after a child has been successfully attached to 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 OnChildAttached(
	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 actual parent of child. If child is assigned to a parent surrogate, the parameter is set to the 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 is assigned and about the relationship of the current node relatively to the parent node.
See Also