Partager via


ModelErrorCollection.Add Method

Include Protected Members
Include Inherited Members

Adds the specified error message to the model-error collection.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method Add(Exception) Adds the specified Exception object to the model-error collection.
Public method Add(String) Adds the specified error message to the model-error collection.
Public method Add(T) (Inherited from Collection<ModelError>.)

Top

See Also

Reference

ModelErrorCollection Class

System.Web.Http.ModelBinding Namespace