System.ComponentModel.DataAnnotations.CustomValidationAttribute
Specifies a custom validation method that is used to validate a property or class instance.
namespace System.ComponentModel.DataAnnotations
{
public sealed class CustomValidationAttribute : ValidationAttribute
{
public Type ValidatorType { get; }
public string Method { get; }
public CustomValidationAttribute(Type validatorType, string method);
}
}