Microsoft.Extensions.Validation Namespace
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.
Classes
| Name | Description |
|---|---|
| DisplayNameInfo |
Resolves the display name of a validated member (property, parameter, or type). Each ValidatablePropertyInfo, ValidatableParameterInfo, and ValidatableTypeInfo may carry a single DisplayNameInfo instance that encapsulates the strategy for producing its display name at validation time. |
| SkipValidationAttribute |
Indicates that a property, parameter, or type should not be validated. |
| ValidatableParameterInfo |
Contains validation information for a parameter. |
| ValidatablePropertyInfo |
Contains validation information for a member of a type. |
| ValidatableTypeAttribute |
Indicates that a type is validatable to support discovery by the validations generator. |
| ValidatableTypeInfo |
Contains validation information for a type. |
| ValidateContext |
Represents the context for validating a validatable object. |
| ValidationOptions |
Specifies configuration options for the validation system. |
Structs
| Name | Description |
|---|---|
| DisplayNameLocalizationContext |
Provides context to the ResolveDisplayName(DisplayNameLocalizationContext) method for resolving localized display names for properties and parameters. |
| ErrorMessageLocalizationContext |
Provides context to the ResolveErrorMessage(ErrorMessageLocalizationContext) method for resolving localized or customized error messages for validation attributes. |
| ValidationErrorContext |
Represents the context of a validation error. |
Interfaces
| Name | Description |
|---|---|
| IValidatableInfo |
Represents an interface for validating a value. |
| IValidatableInfoResolver |
Provides an interface for resolving the validation information associated with a given <seealso cref="T:System.Type"></seealso> or <seealso cref="T:System.Reflection.ParameterInfo"></seealso>. |
| IValidationLocalizer |
Provides localization services for the validation pipeline. Implementations resolve
display names (used as |