PostSharp6.6//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: 6.6.14.0 (6.6.14.0)
Syntax
C#
protected override 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