PostSharp 6.10 / / Post­Sharp Documentation / 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: (
protected virtual void OnAdviseChildFailed(
	Object child


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