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: 2023.0.3.0 (2023.0.3.0)
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.