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 | |
---|---|---|
ModelErrorCollection | Initializes a new instance of the ModelErrorCollection class. |
Top
Properties
Name | Description | |
---|---|---|
Count | (Inherited from Collection<ModelError>.) | |
Item | (Inherited from Collection<ModelError>.) | |
Items | (Inherited from Collection<ModelError>.) |
Top
Methods
Name | Description | |
---|---|---|
Add(Exception) | Adds the specified Exception object to the model-error collection. | |
Add(String) | Adds the specified error message to the model-error collection. | |
Add(T) | (Inherited from Collection<ModelError>.) | |
Clear | (Inherited from Collection<ModelError>.) | |
ClearItems | (Inherited from Collection<ModelError>.) | |
Contains | (Inherited from Collection<ModelError>.) | |
CopyTo | (Inherited from Collection<ModelError>.) | |
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
GetEnumerator | (Inherited from Collection<ModelError>.) | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
IndexOf | (Inherited from Collection<ModelError>.) | |
Insert | (Inherited from Collection<ModelError>.) | |
InsertItem | (Inherited from Collection<ModelError>.) | |
MemberwiseClone | (Inherited from Object.) | |
Remove | (Inherited from Collection<ModelError>.) | |
RemoveAt | (Inherited from Collection<ModelError>.) | |
RemoveItem | (Inherited from Collection<ModelError>.) | |
SetItem | (Inherited from Collection<ModelError>.) | |
ToString | (Inherited from Object.) |
Top
Explicit Interface Implementations
Name | Description | |
---|---|---|
IList.Add | (Inherited from Collection<ModelError>.) | |
IList.Contains | (Inherited from Collection<ModelError>.) | |
ICollection.CopyTo | (Inherited from Collection<ModelError>.) | |
IEnumerable.GetEnumerator | (Inherited from Collection<ModelError>.) | |
IList.IndexOf | (Inherited from Collection<ModelError>.) | |
IList.Insert | (Inherited from Collection<ModelError>.) | |
IList.IsFixedSize | (Inherited from Collection<ModelError>.) | |
ICollection<T>.IsReadOnly | (Inherited from Collection<ModelError>.) | |
IList.IsReadOnly | (Inherited from Collection<ModelError>.) | |
ICollection.IsSynchronized | (Inherited from Collection<ModelError>.) | |
IList.Item | (Inherited from Collection<ModelError>.) | |
IList.Remove | (Inherited from Collection<ModelError>.) | |
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.