Show / Hide Table of Contents

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 Source

ValidationError(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 Source

AttemptedValue

Declaration
public object AttemptedValue { get; set; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

ErrorMessage

Declaration
public string ErrorMessage { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

PropertyName

Declaration
public string PropertyName { get; set; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

ToString()

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>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX