RegularExpressionAttributeAdapter 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.
Provides an adapter for the RegularExpressionAttribute attribute.
public ref class RegularExpressionAttributeAdapter sealed : System::Web::ModelBinding::DataAnnotationsModelValidator<System::ComponentModel::DataAnnotations::RegularExpressionAttribute ^>
public sealed class RegularExpressionAttributeAdapter : System.Web.ModelBinding.DataAnnotationsModelValidator<System.ComponentModel.DataAnnotations.RegularExpressionAttribute>
type RegularExpressionAttributeAdapter = class
inherit DataAnnotationsModelValidator<RegularExpressionAttribute>
Public NotInheritable Class RegularExpressionAttributeAdapter
Inherits DataAnnotationsModelValidator(Of RegularExpressionAttribute)
- Inheritance
-
RegularExpressionAttributeAdapter
Constructors
RegularExpressionAttributeAdapter(ModelMetadata, ModelBindingExecutionContext, RegularExpressionAttribute) |
Initializes a new instance of the RegularExpressionAttributeAdapter class. |
Properties
Attribute |
Gets the validation attribute. (Inherited from DataAnnotationsModelValidator<TAttribute>) |
ErrorMessage |
Gets the error message for a validation failure. (Inherited from DataAnnotationsModelValidator) |
IsRequired |
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) |
ModelBindingExecutionContext |
When implemented in a derived class, gets the execution context. (Inherited from ModelValidator) |
Methods
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetLocalizedErrorMessage(String) |
Gets a localized error message for the model. (Inherited from DataAnnotationsModelValidator) |
GetLocalizedString(String, Object[]) |
Gets a localized version for a specific string. (Inherited from DataAnnotationsModelValidator) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
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) |
Applies to
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za