ModelErrorCollection Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A collection of ModelError instances.
[System.Serializable]
public class ModelErrorCollection : System.Collections.ObjectModel.Collection<System.Web.Mvc.ModelError>
type ModelErrorCollection = class
inherit Collection<ModelError>
Public Class ModelErrorCollection
Inherits Collection(Of ModelError)
- Inheritance
-
ModelErrorCollection
- Attributes
Constructors
ModelErrorCollection() |
Initializes a new instance of the ModelErrorCollection class. |
Methods
Add(Exception) |
Adds the specified Exception object to the model-error collection. |
Add(String) |
Adds the specified error message to the model-error collection. |