Interface IGetsResolvedValidationOptions
An object which can get the resolved/final/effective validation options, combining all of the ways in which they might be specified.
Namespace: CSF.Validation
Assembly: CSF.Validation.Abstractions.dll
Syntax
public interface IGetsResolvedValidationOptions
Remarks
As you will notice, the ResolvedValidationOptions class has the same 'shape' as ValidationOptions, except that every property is non-nullable. The resolved options are created by taking the first non-null value from each of:
- The specified options
- The default options configured at DI registration
- Hard-coded default options (if nothing else is specified)
Methods
| Improve this Doc View SourceGetResolvedValidationOptions(ValidationOptions)
Gets the resolved validation options.
Declaration
ResolvedValidationOptions GetResolvedValidationOptions(ValidationOptions specifiedOptions)
Parameters
Type | Name | Description |
---|---|---|
ValidationOptions | specifiedOptions | Options which have been specified by a developer via the API; may be null. |
Returns
Type | Description |
---|---|
ResolvedValidationOptions | The resolved (or effective) validation options. |