Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ModelErrorCollection::Add Method (String^)

.NET Framework (current version)
 

Adds a validation error to the collection using the specified error message string.

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

public:
void Add(
	String^ errorMessage
)

Parameters

errorMessage
Type: System::String^

The error message string.

.NET Framework
Available since 4.5
Return to top
Show:
© 2017 Microsoft