Partager via


ModelErrorCollection.Add Method (Exception)

Adds the specified Exception object to the model-error collection.

Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)

Syntax

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

instance.Add(exception)
public void Add(
    Exception exception
)
public:
void Add(
    Exception^ exception
)
member Add : 
        exception:Exception -> unit 
public function Add(
    exception : Exception
)

Parameters

See Also

Reference

ModelErrorCollection Class

Add Overload

System.Web.Http.ModelBinding Namespace