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)

'Declaration
Public Sub Add ( _
	exception As Exception _
)
'Usage
Dim instance As ModelErrorCollection 
Dim exception As Exception

instance.Add(exception)

Parameters

exception
Type: System.Exception

The exception.

Show: