Sdílet prostřednictvím


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

See Also

Reference

ModelErrorCollection Class

Add Overload

System.Web.Mvc Namespace