ModelError Class
Represents an error that occurs during model binding.
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Inheritance Hierarchy
System.Object
System.Web.Http.ModelBinding.ModelError
Syntax
[SerializableAttribute]
public class ModelError
[SerializableAttribute]
public ref class ModelError
[<SerializableAttribute>]
type ModelError = class end
<SerializableAttribute>
Public Class ModelError
Constructors
Name | Description | |
---|---|---|
ModelError(Exception) | Initializes a new instance of the ModelError class by using the specified exception. |
|
ModelError(Exception, String) | Initializes a new instance of the ModelError class by using the specified exception and error message. |
|
ModelError(String) | Initializes a new instance of the ModelError class by using the specified error message. |
Properties
Name | Description | |
---|---|---|
ErrorMessage | Gets or sets the error message. |
|
Exception | Gets or sets the exception object. |
Methods
Name | Description | |
---|---|---|
Equals(Object) | (Inherited from Object.) |
|
Finalize() | (Inherited from Object.) |
|
GetHashCode() | (Inherited from Object.) |
|
GetType() | (Inherited from Object.) |
|
MemberwiseClone() | (Inherited from Object.) |
|
ToString() | (Inherited from Object.) |
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.
See Also
System.Web.Http.ModelBinding Namespace
Return to top