FieldValidationMetadata Class


Provides a container for client-side field validation metadata.

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

Inheritance Hierarchy



public class FieldValidationMetadata
public ref class FieldValidationMetadata 
type FieldValidationMetadata = class end
Public Class FieldValidationMetadata


Name Description
System_CAPS_pubmethod FieldValidationMetadata()

Initializes a new instance of the FieldValidationMetadata class.


Name Description
System_CAPS_pubproperty FieldName

Gets or sets the name of the data field.

System_CAPS_pubproperty ReplaceValidationMessageContents

Gets or sets a value that indicates whether the validation message contents should be replaced with the client validation error.

System_CAPS_pubproperty ValidationMessageId

Gets or sets the validator message ID.

System_CAPS_pubproperty ValidationRules

Gets the client validation rules.


Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)


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

System.Web.Mvc Namespace

Return to top