RangeAttributeAdapter Class
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.
Provides an adapter for the RangeAttribute attribute.
public ref class RangeAttributeAdapter sealed : System::Web::ModelBinding::DataAnnotationsModelValidator<System::ComponentModel::DataAnnotations::RangeAttribute ^>
public sealed class RangeAttributeAdapter : System.Web.ModelBinding.DataAnnotationsModelValidator<System.ComponentModel.DataAnnotations.RangeAttribute>
type RangeAttributeAdapter = class
inherit DataAnnotationsModelValidator<RangeAttribute>
Public NotInheritable Class RangeAttributeAdapter
Inherits DataAnnotationsModelValidator(Of RangeAttribute)
- Inheritance
-
RangeAttributeAdapter
Range |
Initializes a new instance of the RangeAttributeAdapter class. |
Attribute |
Gets the validation attribute. (Inherited from DataAnnotationsModelValidator<TAttribute>) |
Error |
Gets the error message for a validation failure. (Inherited from DataAnnotationsModelValidator) |
Is |
Gets a value that indicates whether the model is required (that is, whether the validation attribute in the Attribute property is a RequiredAttribute attribute). (Inherited from DataAnnotationsModelValidator) |
Metadata |
When implemented in a derived class, gets the metadata for the model validator. (Inherited from ModelValidator) |
Model |
When implemented in a derived class, gets the execution context. (Inherited from ModelValidator) |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets a localized error message for the model. (Inherited from DataAnnotationsModelValidator) |
Get |
Gets a localized version for a specific string. (Inherited from DataAnnotationsModelValidator) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Validate(Object) |
Returns a list of validation error messages for the model. (Inherited from DataAnnotationsModelValidator) |
Produit | Versions |
---|---|
.NET Framework | 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires: