PostSharp6.2/API Reference/Post­Sharp.​Patterns.​Model Namespace/Aggregatable­Client­Attribute Class/Aggregatable­Client­Attribute Methods/Aggregatable­Client­Attribute.​Is­Eligible­Child Method

AggregatableClientAttribute.IsEligibleChild Method

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

Namespace:  PostSharp.Patterns.Model
Assembly:  PostSharp.Patterns.Aggregation (in PostSharp.Patterns.Aggregation.dll) Version: 6.2.11.0 (6.2.11.0)
Syntax
C#
protected abstract 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