RequiredIfAttribute.AddValidation method public override void AddValidation(ClientModelValidationContext context) See Also class RequiredIfAttribute namespace Amica