<PackageReference Include="Microsoft.Extensions.Options" Version="11.0.0-preview.1.26104.118" />

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.