PostSharp6.4/API Reference/Post­Sharp.​Patterns.​Threading Namespace/Thread­Aware­Attribute Class/Thread­Aware­Attribute Methods/Thread­Aware­Attribute.​Is­Eligible­Child Method

ThreadAwareAttribute.IsEligibleChild Method

Determines if an object is eligible to be a child of the target instance of the current aspect.

Namespace:  PostSharp.Patterns.Threading
Assembly:  PostSharp.Patterns.Threading (in PostSharp.Patterns.Threading.dll) Version: 6.4.3.0 (6.4.3.0)
Syntax
C#
protected override sealed bool IsEligibleChild(
	Object child,
	ChildInfo childInfo
)

Parameters

child
Type: System.Object
childInfo
Type: PostSharp.Patterns.Model.ChildInfo

Return Value

Type: Boolean
true if child is eligible to be a child without injecting any advice, otherwise false. When this method returns false, the aspect will the invoke the Advise(Object) method.
See Also