ModelError Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ModelError(Exception) |
Initializes a new instance of ModelError with the specified |
ModelError(String) |
Initializes a new instance of ModelError with the specified |
ModelError(Exception, String) |
Initializes a new instance of ModelError with the specified |
ModelError(Exception)
- Source:
- ModelError.cs
- Source:
- ModelError.cs
- Source:
- ModelError.cs
Initializes a new instance of ModelError with the specified exception
.
public:
ModelError(Exception ^ exception);
public ModelError (Exception exception);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelError : Exception -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelError
Public Sub New (exception As Exception)
Parameters
Applies to
ModelError(String)
- Source:
- ModelError.cs
- Source:
- ModelError.cs
- Source:
- ModelError.cs
Initializes a new instance of ModelError with the specified errorMessage
.
public:
ModelError(System::String ^ errorMessage);
public ModelError (string errorMessage);
public ModelError (string? errorMessage);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelError : string -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelError
Public Sub New (errorMessage As String)
Parameters
- errorMessage
- String
The error message.
Applies to
ModelError(Exception, String)
- Source:
- ModelError.cs
- Source:
- ModelError.cs
- Source:
- ModelError.cs
Initializes a new instance of ModelError with the specified exception
and specified errorMessage
.
public:
ModelError(Exception ^ exception, System::String ^ errorMessage);
public ModelError (Exception exception, string errorMessage);
public ModelError (Exception exception, string? errorMessage);
new Microsoft.AspNetCore.Mvc.ModelBinding.ModelError : Exception * string -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelError
Public Sub New (exception As Exception, errorMessage As String)
Parameters
- errorMessage
- String
The error message.