Table of Contents

Class FieldValidationMetadata

Namespace
System.Web.Mvc
Assembly
System.Web.Mvc.dll

Provides a container for client-side field validation metadata.

public class FieldValidationMetadata
Inheritance
FieldValidationMetadata
Inherited Members

Constructors

FieldValidationMetadata()

Initializes a new instance of the FieldValidationMetadata class.

public FieldValidationMetadata()

Properties

FieldName

Gets or sets the name of the data field.

public string FieldName { get; set; }

Property Value

string

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.

public bool ReplaceValidationMessageContents { get; set; }

Property Value

bool

true if the validation message contents should be replaced with the client validation error; otherwise, false.

ValidationMessageId

Gets or sets the validator message ID.

public string ValidationMessageId { get; set; }

Property Value

string

The validator message ID.

ValidationRules

Gets the client validation rules.

public ICollection<ModelClientValidationRule> ValidationRules { get; }

Property Value

ICollection<ModelClientValidationRule>

The client validation rules.