ModelErrorCollection Class
Represents a collection of ModelError instances.
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Inheritance Hierarchy
System.Object
System.Collections.ObjectModel.Collection<T>
System.Web.Http.ModelBinding.ModelErrorCollection
Syntax
[SerializableAttribute]
public class ModelErrorCollection : Collection<ModelError>
[SerializableAttribute]
public ref class ModelErrorCollection : Collection<ModelError^>
[<SerializableAttribute>]
type ModelErrorCollection =
class
inherit Collection<ModelError>
end
<SerializableAttribute>
Public Class ModelErrorCollection
Inherits Collection(Of ModelError)
Constructors
Name | Description | |
---|---|---|
ModelErrorCollection() | Initializes a new instance of the ModelErrorCollection class. |
Properties
Name | Description | |
---|---|---|
Count | (Inherited from Collection<T>.) |
|
Item[Int32] | (Inherited from Collection<T>.) |
|
Items | (Inherited from Collection<T>.) |
Methods
Name | Description | |
---|---|---|
Add(T) | (Inherited from Collection<T>.) |
|
Add(Exception) | Adds the specified Exception object to the model-error collection. |
|
Add(String) | Adds the specified error message to the model-error collection. |
|
Clear() | (Inherited from Collection<T>.) |
|
ClearItems() | (Inherited from Collection<T>.) |
|
Contains(T) | (Inherited from Collection<T>.) |
|
CopyTo(T[], Int32) | (Inherited from Collection<T>.) |
|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetEnumerator() | (Inherited from Collection<T>.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
IndexOf(T) | (Inherited from Collection<T>.) |
|
Insert(Int32, T) | (Inherited from Collection<T>.) |
|
InsertItem(Int32, T) | (Inherited from Collection<T>.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
Remove(T) | (Inherited from Collection<T>.) |
|
RemoveAt(Int32) | (Inherited from Collection<T>.) |
|
RemoveItem(Int32) | (Inherited from Collection<T>.) |
|
SetItem(Int32, T) | (Inherited from Collection<T>.) |
|
ToString() | (Inherited from Object.) |
Explicit Interface Implementations
Name | Description | |
---|---|---|
ICollection.CopyTo(Array, Int32) | (Inherited from Collection<T>.) |
|
IEnumerable.GetEnumerator() | (Inherited from Collection<T>.) |
|
IList.Add(Object) | (Inherited from Collection<T>.) |
|
IList.Contains(Object) | (Inherited from Collection<T>.) |
|
IList.IndexOf(Object) | (Inherited from Collection<T>.) |
|
IList.Insert(Int32, Object) | (Inherited from Collection<T>.) |
|
IList.Remove(Object) | (Inherited from Collection<T>.) |
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
System.Web.Http.ModelBinding Namespace
Return to top