ModelError Constructor (String)

Initializes a new instance of the ModelError class by using the specified error message.

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

public ModelError(
	string errorMessage
)

Parameters

errorMessage
Type: System.String

The error message.

Show: