This topic has not yet been rated - Rate this topic

ModelErrorCollection Class

A collection of ModelError instances.

System.Object
  System.Collections.ObjectModel.Collection<ModelError>
    System.Web.Mvc.ModelErrorCollection

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

The ModelErrorCollection type exposes the following members.

  Name Description
Public method ModelErrorCollection Initializes a new instance of the ModelErrorCollection class.
Top
  Name Description
Public property Count (Inherited from Collection<ModelError>.)
Public property Item (Inherited from Collection<ModelError>.)
Protected property Items (Inherited from Collection<ModelError>.)
Top
  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>.)
Public method Clear (Inherited from Collection<ModelError>.)
Protected method ClearItems (Inherited from Collection<ModelError>.)
Public method Contains (Inherited from Collection<ModelError>.)
Public method CopyTo (Inherited from Collection<ModelError>.)
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator (Inherited from Collection<ModelError>.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IndexOf (Inherited from Collection<ModelError>.)
Public method Insert (Inherited from Collection<ModelError>.)
Protected method InsertItem (Inherited from Collection<ModelError>.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Remove (Inherited from Collection<ModelError>.)
Public method RemoveAt (Inherited from Collection<ModelError>.)
Protected method RemoveItem (Inherited from Collection<ModelError>.)
Protected method SetItem (Inherited from Collection<ModelError>.)
Public method ToString (Inherited from Object.)
Top
  Name Description
Explicit interface implemetation Private method IList.Add (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private method IList.Contains (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private method ICollection.CopyTo (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private method IEnumerable.GetEnumerator (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private method IList.IndexOf (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private method IList.Insert (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private property IList.IsFixedSize (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private property ICollection<T>.IsReadOnly (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private property IList.IsReadOnly (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private property ICollection.IsSynchronized (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private property IList.Item (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private method IList.Remove (Inherited from Collection<ModelError>.)
Explicit interface implemetation Private property ICollection.SyncRoot (Inherited from Collection<ModelError>.)
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)