Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
StringLengthAttributeAdapter Class
Collapse the table of content
Expand the table of content

StringLengthAttributeAdapter Class

 

Provides an adapter for the StringLengthAttribute attribute.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)


type StringLengthAttributeAdapter = 
    class
        inherit DataAnnotationsModelValidator<StringLengthAttribute>
    end

NameDescription
System_CAPS_pubmethodStringLengthAttributeAdapter(ModelMetadata, ControllerContext, StringLengthAttribute)

Initializes a new instance of the StringLengthAttributeAdapter class.

NameDescription
System_CAPS_protpropertyAttribute

Gets the validation attribute from the model validator.(Inherited from DataAnnotationsModelValidator<'TAttribute>.)

System_CAPS_protpropertyControllerContext

Gets the controller context.(Inherited from ModelValidator.)

System_CAPS_protpropertyErrorMessage

Gets the error message for the validation failure.(Inherited from DataAnnotationsModelValidator.)

System_CAPS_pubpropertyIsRequired

Gets a value that indicates whether model validation is required.(Inherited from DataAnnotationsModelValidator.)

System_CAPS_protpropertyMetadata

Gets the metadata for the model validator.(Inherited from ModelValidator.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetClientValidationRules()

Gets a list of string-length client validation rules.(Overrides DataAnnotationsModelValidator.GetClientValidationRules().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodValidate(Object)

Returns a list of validation error messages for the model.(Inherited from DataAnnotationsModelValidator.)

This adapter enables client-side validation for the StringLengthAttribute attribute.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2015 Microsoft