This is the online documentation for PostSharp 5.0.
Download PDF or CHM. Go to v4.3 or v5.0

IAttacher Interface

Describes the semantics of a service through which a child IAggregatable object can attach itself to a parent object. This interface is typically implemented by the parent object by composition.

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 5.0.34.0 (5.0.34.0)
Syntax
C#
public interface IAttacher

The IAttacher type exposes the following members.

Methods
  NameDescription
Public methodAttachChild
Attach an object as a child of the current node.
Public methodDetachChild
Detaches an object as a child of the current node.
Public methodGetNode
Gets the underlying object instance which is subject to the current attacher. The instance is the aggregatable node that participates in the parent-child relationships with other objects.
Public methodOnChildAttached
Method invoked after a child has been successfully attached to the current node.
Public methodOnChildDetached
Method invoked when a child has been detached from the current node.
Top
Remarks

This interface should typically not be used or implemented in user code.

See Also