PostSharp 6.5 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Threading Namespace / Thread­Aware­Attribute Class / Thread­Aware­Attribute Methods / Thread­Aware­Attribute.​On­Advise­Child­Failed Method

ThreadAwareAttribute.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.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: (
protected override 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