Class ValidationError
Represents a validation error with a property name, error message, and attempted value.
Inheritance
System.Object
ValidationError
Implements
System.IEquatable<ValidationError>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: MediatorForge.Utilities
Assembly: MediatorForge.dll
Syntax
public class ValidationError : IEquatable<ValidationError>
Constructors
| Improve this Doc View SourceValidationError(String, String, Object)
Represents a validation error with a property name, error message, and attempted value.
Declaration
public ValidationError(string PropertyName, string ErrorMessage, object AttemptedValue = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | PropertyName | |
System.String | ErrorMessage | |
System.Object | AttemptedValue |
Properties
| Improve this Doc View SourceAttemptedValue
Declaration
public object AttemptedValue { get; set; }
Property Value
Type | Description |
---|---|
System.Object |
ErrorMessage
Declaration
public string ErrorMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PropertyName
Declaration
public string PropertyName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A string that represents the current object. |
Overrides
System.Object.ToString()
Implements
System.IEquatable<T>