<PackageReference Include="Microsoft.Extensions.Options" Version="10.0.4" />

Microsoft.Extensions.Options.OptionsValidationException

Represents the exception that's thrown when options validation fails.
public IEnumerable<string> Failures { get; }

Gets the validation failures.

public string OptionsName { get; }

Gets the name of the options instance that failed.

public Type OptionsType { get; }

Gets the type of the options that failed.

public OptionsValidationException(string optionsName, Type optionsType, IEnumerable<string> failureMessages)

Creates a new instance of OptionsValidationException.