Share via


FieldValidationMetadata.ReplaceValidationMessageContents Property

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

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

Syntax

'Declaration
Public Property ReplaceValidationMessageContents As Boolean
    Get
    Set
public bool ReplaceValidationMessageContents { get; set; }
public:
property bool ReplaceValidationMessageContents {
    bool get ();
    void set (bool value);
}

Property Value

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

See Also

Reference

FieldValidationMetadata Class

System.Web.Mvc Namespace