ModelError Constructor (Exception)

Initializes a new instance of the ModelError class by using the specified exception.

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

Syntax

'Declaration
Public Sub New ( _
    exception As Exception _
)
'Usage
Dim exception As Exception

Dim instance As New ModelError(exception)
public ModelError(
    Exception exception
)
public:
ModelError(
    Exception^ exception
)
new : 
        exception:Exception -> ModelError
public function ModelError(
    exception : Exception
)

Parameters

See Also

Reference

ModelError Class

ModelError Overload

System.Web.Http.ModelBinding Namespace