ModelErrorCollection Klasse

Definition

Eine Auflistung von ModelError-Instanzen.

[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)
Vererbung
ModelErrorCollection
Attribute

Konstruktoren

ModelErrorCollection()

Initialisiert eine neue Instanz der ModelErrorCollection-Klasse.

Methoden

Add(Exception)

Fügt das angegebene Exception Objekt der Model-Error-Auflistung hinzu.

Add(String)

Fügt der Modellfehlerauflistung die angegebene Fehlermeldung hinzu.

Gilt für: