ValidationErrorInfo Constructors
An object defining constructors for the ValidationErrorInfo class.
ValidationErrorInfo(message)
Initializes a new instance of the ValidationErrorInfo
class with a specified error message.
Parameters:
message (required): string
The error message associated with the validation error.
ValidationErrorInfo(message, memberName)
Initializes a new instance of the ValidationErrorInfo
class with a specified error message.
Parameters:
message (required): string
The error message associated with the validation error.
memberName (required): string
The name of the member where the validation error occurred.
ValidationErrorInfo()
Initializes a new instance of the ValidationErrorInfo
class.
ValidationErrorInfo(code, message, memberName)
Initializes a new instance of the ValidationErrorInfo
class with a specified error message.
Parameters:
code (required): string
The name of the member where the validation error occurred.
message (required): string
The error message associated with the validation error.
memberName (required): string
The name of the member where the validation error occurred.