MustHaveAspectOfType(IEligibilityBuilder<IDeclaration>, Type)
Requires the target declaration to have an aspect of a given type.
Declaration
public static void MustHaveAspectOfType(this IEligibilityBuilder<IDeclaration> eligibilityBuilder, Type aspectType)Parameters
| Type | Name | Description |
|---|---|---|
| IEligibilityBuilder<IDeclaration> | eligibilityBuilder | The eligibility builder for a declaration. |
| Type | aspectType | The exact aspect type. Derived types are not taken into account. |
Remarks
Use this method when an aspect should only be applied to declarations that already have another specific aspect.