ValidationOptions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Specifies configuration options for the validation system.
public ref class ValidationOptions
public class ValidationOptions
type ValidationOptions = class
Public Class ValidationOptions
- Inheritance
-
ValidationOptions
Constructors
| Name | Description |
|---|---|
| ValidationOptions() | |
Properties
| Name | Description |
|---|---|
| Localizer |
Gets or sets the IValidationLocalizer used by the validation pipeline to resolve localized display names and error messages. |
| MaxDepth |
Gets or sets the maximum depth for validation of nested objects. |
| Resolvers |
Gets the list of resolvers that provide validation metadata for types and parameters. Resolvers are processed in order, with the first resolver that provides a non-null result being used. |
Methods
| Name | Description |
|---|---|
| TryGetValidatableParameterInfo(ParameterInfo, IValidatableInfo) |
Attempts to get validation information for the specified parameter. |
| TryGetValidatablePropertyInfo(Type, String, IValidatableInfo) |
Attempts to get validation information for a property declared on the specified type or any of its super-types. |
| TryGetValidatableTypeInfo(Type, IValidatableInfo) |
Attempts to get validation information for the specified type. |