.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 | |
|---|---|---|
|
FieldValidationMetadata | Initializes a new instance of the FieldValidationMetadata class. |
Properties
| Name | Description | |
|---|---|---|
|
FieldName | Gets or sets the name of the data field. |
|
ReplaceValidationMessageContents | Gets or sets a value that indicates whether the validation message contents should be replaced with the client validation error. |
|
ValidationMessageId | Gets or sets the validator message ID. |
|
ValidationRules | Gets the client validation rules. |
Methods
| Name | Description | |
|---|---|---|
|
Equals | (Inherited from Object.) |
|
Finalize | (Inherited from Object.) |
|
GetHashCode | (Inherited from Object.) |
|
GetType | (Inherited from Object.) |
|
MemberwiseClone | (Inherited from Object.) |
|
ToString | (Inherited from Object.) |
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