Table of Contents

Class ModelValidationResult

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

Provides a container for a validation result.

public class ModelValidationResult
Inheritance
ModelValidationResult
Inherited Members

Constructors

ModelValidationResult()

Initializes a new instance of the ModelValidationResult class.

public ModelValidationResult()

Properties

MemberName

Gets or sets the name of the member.

public string MemberName { get; set; }

Property Value

string

The name of the member.

Message

Gets or sets the validation result message.

public string Message { get; set; }

Property Value

string

The validation result message.