Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
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 | |
|---|---|---|
![]() |
ModelError(Exception) | Initializes a new instance of the ModelError class by using the specified exception. |
![]() |
ModelError(String) | Initializes a new instance of the ModelError class by using the specified error message. |
![]() |
ModelError(Exception, String) | Initializes a new instance of the ModelError class by using the specified exception and error message. |
Top
Properties
| Name | Description | |
|---|---|---|
![]() |
ErrorMessage | Gets or sets the error message. |
![]() |
Exception | Gets or sets the exception object. |
Top
Methods
| Name | Description | |
|---|---|---|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize | (Inherited from Object.) |
![]() |
GetHashCode | (Inherited from Object.) |
![]() |
GetType | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
![]() |
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.
.jpeg)
.jpeg)
.jpeg)