Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

ModelErrorCollection Class

A collection of ModelError instances.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)
public class ModelErrorCollection extends Collection<ModelError>

The ModelErrorCollection type exposes the following members.

  NameDescription
Public methodModelErrorCollectionInitializes a new instance of the ModelErrorCollection class.
Top
  NameDescription
Public propertyCount (Inherited from Collection(ModelError).)
Public propertyItem (Inherited from Collection(ModelError).)
Protected propertyItems (Inherited from Collection(ModelError).)
Top
  NameDescription
Public methodAdd(Exception)Adds the specified Exception object to the model-error collection.
Public methodAdd(String)Adds the specified error message to the model-error collection.
Public methodAdd(T) (Inherited from Collection(ModelError).)
Public methodClear (Inherited from Collection(ModelError).)
Protected methodClearItems (Inherited from Collection(ModelError).)
Public methodContains (Inherited from Collection(ModelError).)
Public methodCopyTo (Inherited from Collection(ModelError).)
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumerator (Inherited from Collection(ModelError).)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIndexOf (Inherited from Collection(ModelError).)
Public methodInsert (Inherited from Collection(ModelError).)
Protected methodInsertItem (Inherited from Collection(ModelError).)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemove (Inherited from Collection(ModelError).)
Public methodRemoveAt (Inherited from Collection(ModelError).)
Protected methodRemoveItem (Inherited from Collection(ModelError).)
Protected methodSetItem (Inherited from Collection(ModelError).)
Public methodToString (Inherited from Object.)
Top
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.