ModelError Constructor (Exception)

.NET Framework (current version)
 

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

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

public ModelError(
	Exception exception
)

Parameters

exception
Type: System.Exception

The exception.

Exception Condition
ArgumentNullException

The exception parameter is null.

.NET Framework
Available since 4.5
Return to top
Show: