Class ObjectValidationResult.ValidationError
Defines a validation error.
Inherited Members
Namespace: Swan.Validators
Syntax
public class ValidationError
Constructors
ValidationError(String, String)
Initializes a new instance of the ObjectValidationResult.ValidationError class.
Declaration
public ValidationError(string propertyName, string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
String | propertyName | Name of the property. |
String | errorMessage | The error message. |
Properties
ErrorMessage
The message error.
Declaration
public string ErrorMessage { get; }
Property Value
Type | Description |
---|---|
String |
PropertyName
The property name.
Declaration
public string PropertyName { get; }
Property Value
Type | Description |
---|---|
String |