ModelStateDictionary::AddModelError Method

.NET Framework (current version)
 

Adds a model error to the errors collection.

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

NameDescription
System_CAPS_pubmethodAddModelError(String^, Exception^)

Adds a model error to the errors collection using the specified key and using the specified exception for the value.

System_CAPS_pubmethodAddModelError(String^, String^)

Adds the specified model error to the errors collection using the specified key and using the specified error message string for the value.

Return to top
Show: