Freigeben über


ModelErrorCollection.Add Method

Include Protected Members
Include Inherited Members

Adds an Exception object 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) Adds an object to the end of the Collection<T>. (Inherited from Collection<ModelError>.)

Top

See Also

Reference

ModelErrorCollection Class

System.Web.Mvc Namespace