ModelErrorCollection.Add Method (Exception)
Adds the specified Exception object to the model-error collection.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Sub Add ( _
exception As Exception _
)
public void Add(
Exception exception
)
public:
void Add(
Exception^ exception
)
Parameters
- exception
Type: System.Exception
The exception.