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