<PackageReference Include="Microsoft.Extensions.Options" Version="11.0.0-preview.2.26159.112" />
Microsoft.Extensions.Options.ValidateOptions<TOptions>
Gets the error to return when validation fails.
public string Name {
get; }
Gets the options name.
Gets the validation function.
Validates a specific named options instance (or all when name is null).