IValidateOptions<T>

An interface for writing options validation rules in code, such as a rule comparing two members that no single attribute can express.

In more detail

Its Validate method returns ValidateOptionsResult.Success or Fail with messages. Register it as a singleton; ValidateOnStart runs it alongside the attributes.

Related terms

Taught in

References