RegularExpressionAttributeAdapter RegularExpressionAttributeAdapter RegularExpressionAttributeAdapter RegularExpressionAttributeAdapter Class

Definition

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

Constructors

RegularExpressionAttributeAdapter(ModelMetadata, ModelBindingExecutionContext, RegularExpressionAttribute) RegularExpressionAttributeAdapter(ModelMetadata, ModelBindingExecutionContext, RegularExpressionAttribute) RegularExpressionAttributeAdapter(ModelMetadata, ModelBindingExecutionContext, RegularExpressionAttribute) RegularExpressionAttributeAdapter(ModelMetadata, ModelBindingExecutionContext, RegularExpressionAttribute)

Initializes a new instance of the RegularExpressionAttributeAdapter class.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLocalizedErrorMessage(String) GetLocalizedErrorMessage(String) GetLocalizedErrorMessage(String) GetLocalizedErrorMessage(String)

Gets a localized error message for the model.

(Inherited from DataAnnotationsModelValidator)
GetLocalizedString(String, Object[]) GetLocalizedString(String, Object[]) GetLocalizedString(String, Object[]) GetLocalizedString(String, Object[])

Gets a localized version for a specific string.

(Inherited from DataAnnotationsModelValidator)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)
Validate(Object) Validate(Object) Validate(Object) Validate(Object)

Returns a list of validation error messages for the model.

(Inherited from DataAnnotationsModelValidator)

Properties

Attribute Attribute Attribute Attribute

Gets the validation attribute.

(Inherited from DataAnnotationsModelValidator<TAttribute>)
ErrorMessage ErrorMessage ErrorMessage ErrorMessage

Gets the error message for a validation failure.

(Inherited from DataAnnotationsModelValidator)
IsRequired IsRequired IsRequired 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 Metadata Metadata Metadata

When implemented in a derived class, gets the metadata for the model validator.

(Inherited from ModelValidator)
ModelBindingExecutionContext ModelBindingExecutionContext ModelBindingExecutionContext ModelBindingExecutionContext

When implemented in a derived class, gets the execution context.

(Inherited from ModelValidator)

Applies to