Represents an error that occurs during model binding.
Inheritance Hierarchy
System.Object
  System.Web.Http.ModelBinding.ModelError
Namespace:  System.Web.Http.ModelBinding
Assembly:  System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
<SerializableAttribute> _
Public Class ModelError
'Usage
Dim instance As ModelError
[SerializableAttribute]
public class ModelError
[SerializableAttribute]
public ref class ModelError
[<SerializableAttribute>]
type ModelError =  class end
public class ModelError
The ModelError type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .jpeg) | ModelError(Exception) | Initializes a new instance of the ModelError class by using the specified exception. | 
| .jpeg) | ModelError(String) | Initializes a new instance of the ModelError class by using the specified error message. | 
| .jpeg) | ModelError(Exception, String) | Initializes a new instance of the ModelError class by using the specified exception and error message. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .jpeg) | ErrorMessage | Gets or sets the error message. | 
| .jpeg) | Exception | Gets or sets the exception object. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .jpeg) | Equals | (Inherited from Object.) | 
| .jpeg) | Finalize | (Inherited from Object.) | 
| .jpeg) | GetHashCode | (Inherited from Object.) | 
| .jpeg) | GetType | (Inherited from Object.) | 
| .jpeg) | MemberwiseClone | (Inherited from Object.) | 
| .jpeg) | ToString | (Inherited from Object.) | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.