PostSharp6.7//API Reference/Post­Sharp.​Patterns.​Model Namespace/Aggregatable­Client­Attribute Class/Aggregatable­Client­Attribute Methods/Aggregatable­Client­Attribute.​On­Advise­Child­Failed Method

AggregatableClientAttribute.OnAdviseChildFailed Method

Method invoked when a child is assigned to a parent and the advices of the parent cannot be added to the child. Implementations can choose to throw an exception (thread-aware attributes do this) or ignore the situation (DisposableAttribute does this).

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 6.7.10.0 (6.7.10.0)
Syntax
C#
protected virtual void OnAdviseChildFailed(
	Object child
)

Parameters

child
Type: System.Object
An object that's ineligible to be a child. It's guaranteed to be non-null.
See Also