Delen via


ModelErrorCollection Class

Definition

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.

Applies to