อ่านในภาษาอังกฤษ

แชร์ผ่าน


ModelError Class

Definition

An error that occurred during model binding and validation.

C#
public class ModelError
Inheritance
ModelError

Constructors

ModelError(Exception, String)

Initializes a new instance of ModelError with the specified exception and specified errorMessage.

ModelError(Exception)

Initializes a new instance of ModelError with the specified exception.

ModelError(String)

Initializes a new instance of ModelError with the specified errorMessage.

Properties

ErrorMessage

Gets the error message associated with this ModelError instance.

Exception

Gets the Exception associated with this ModelError instance.

Applies to

ผลิตภัณฑ์ เวอร์ชัน
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0