ModelErrorCollection::Add Method
Adds an Exception object to the model-error collection.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
| Name | Description | |
|---|---|---|
![]() | Add(T) | (Inherited from Collection<T>.) |
![]() | Add(Exception^) | Adds the specified Exception object to the model-error collection. |
![]() | Add(String^) | Adds the specified error message to the model-error collection. |
ModelErrorCollection::Add Method (Exception^)
Adds the specified Exception object to the model-error collection.
Parameters
- exception
-
Type:
System::Exception^
The exception.
ModelErrorCollection::Add Method (String^)
Adds the specified error message to the model-error collection.
Parameters
- errorMessage
-
Type:
System::String^
The error message.
Show:
