ModelError Constructor (String)
Initializes a new instance of the ModelError class by using the specified error message.
Namespace: System.Web.Http.ModelBinding
Assembly: System.Web.Http (in System.Web.Http.dll)
Syntax
'Declaration
Public Sub New ( _
errorMessage As String _
)
'Usage
Dim errorMessage As String
Dim instance As New ModelError(errorMessage)
public ModelError(
string errorMessage
)
public:
ModelError(
String^ errorMessage
)
new :
errorMessage:string -> ModelError
public function ModelError(
errorMessage : String
)
Parameters
- errorMessage
Type: System.String
The error message