Partager via


ModelErrorCollection Class

Represents a collection of ModelError instances.

Inheritance Hierarchy

System.Object
  System.Collections.ObjectModel.Collection<ModelError>
    System.Web.Http.ModelBinding.ModelErrorCollection

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

Syntax

'Declaration
<SerializableAttribute> _
Public Class ModelErrorCollection _
    Inherits Collection(Of ModelError)
'Usage
Dim instance As ModelErrorCollection
[SerializableAttribute]
public class ModelErrorCollection : Collection<ModelError>
[SerializableAttribute]
public ref class ModelErrorCollection : public Collection<ModelError^>
[<SerializableAttribute>]
type ModelErrorCollection =  
    class
        inherit Collection<ModelError>
    end
public class ModelErrorCollection extends Collection<ModelError>

The ModelErrorCollection type exposes the following members.

Constructors

  Name Description
Public method ModelErrorCollection Initializes a new instance of the ModelErrorCollection class.

Top

Properties

  Name Description
Public property Count (Inherited from Collection<ModelError>.)
Public property Item (Inherited from Collection<ModelError>.)
Protected property Items (Inherited from Collection<ModelError>.)

Top

Methods

  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

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IList.Add (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate method IList.Contains (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate method ICollection.CopyTo (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate method IList.IndexOf (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate method IList.Insert (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate property IList.IsFixedSize (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate property ICollection<T>.IsReadOnly (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate property IList.IsReadOnly (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate property ICollection.IsSynchronized (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate property IList.Item (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate method IList.Remove (Inherited from Collection<ModelError>.)
Explicit interface implemetationPrivate property ICollection.SyncRoot (Inherited from Collection<ModelError>.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Web.Http.ModelBinding Namespace