ModelErrorCollection ModelErrorCollection ModelErrorCollection Class

Definition

A collection of ModelError instances.

[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
ModelErrorCollectionModelErrorCollectionModelErrorCollection
Attributes
SerializableAttribute

Constructors

ModelErrorCollection() ModelErrorCollection() ModelErrorCollection()

Initializes a new instance of the ModelErrorCollection class.

Methods

Add(Exception) Add(Exception) Add(Exception)

Adds the specified Exception object to the model-error collection.

Add(String) Add(String) Add(String)

Adds the specified error message to the model-error collection.

Applies to