Metalama 1.0 / / Metalama Documentation / Aspect API / Metalama.​Framework.​Eligibility / IEligibility­Rule<T> / Get­Ineligibility­Justification

Method GetIneligibilityJustification

GetIneligibilityJustification(EligibleScenarios, IDescribedObject<T>)

Gets the justification for which the GetEligibility(T) method returned anything else than All.

Declaration
FormattableString GetIneligibilityJustification(EligibleScenarios requestedEligibility, IDescribedObject<T> describedObject)
Parameters
Type Name Description
EligibleScenarios requestedEligibility

The eligibility that was requested by the user, but denied.

IDescribedObject<T> describedObject

The object for which the eligibility was denied, plus its description.

Returns
Type Description
FormattableString