FieldValidationMetadata Class (System.Web.Mvc)

Switch View :
ScriptFree
.NET Framework Class Library
FieldValidationMetadata Class

Provides a container for client-side field validation metadata.

Inheritance Hierarchy

System.Object
  System.Web.Mvc.FieldValidationMetadata

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

Visual Basic (Declaration)
Public Class FieldValidationMetadata
Visual Basic (Usage)
Dim instance As FieldValidationMetadata
C#
public class FieldValidationMetadata
Visual C++
public ref class FieldValidationMetadata
JScript
public class FieldValidationMetadata

The FieldValidationMetadata type exposes the following members.

Constructors

  Name Description
Public method FieldValidationMetadata Initializes a new instance of the FieldValidationMetadata class.
Top
Properties

  Name Description
Public property FieldName Gets or sets the name of the data field.
Public property ReplaceValidationMessageContents Gets or sets a value that indicates whether the validation message contents should be replaced with the client validation error.
Public property ValidationMessageId Gets or sets the validator message ID.
Public property ValidationRules Gets the client validation rules.
Top
Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Top
Remarks

The MVC framework uses this class when client-side validation is enabled. You typically do not have to use this class directly.

Thread Safety

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

Reference