Struct ValidationError
- Namespace
- Dynamicweb.Ecommerce.Orders.Validation
- Assembly
- Dynamicweb.Ecommerce.dll
The structure ValidationError represents Validation error used for Report.
[Serializable]
public struct ValidationError : IEquatable<ValidationError>
- Implements
- Inherited Members
Constructors
ValidationError(ValidationField, string)
Initializes a new instance of the ValidationError class.
public ValidationError(ValidationField validationField, string errorMessage)
Parameters
validationFieldValidationFieldThe validation field.
errorMessagestringThe validation error message.
Fields
ErrorMessage
Gets or sets the validation error message.
public string ErrorMessage
Field Value
ValidationField
Gets or sets the validation field.
public ValidationField ValidationField
Field Value
Methods
Equals(ValidationError)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ValidationError other)
Parameters
otherValidationErrorAn object to compare with this object.
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current instance.
Returns
- bool
true if
objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()
Returns
- int
A 32-bit signed integer that is the hash code for this instance.
Operators
operator ==(ValidationError, ValidationError)
public static bool operator ==(ValidationError left, ValidationError right)
Parameters
leftValidationErrorrightValidationError
Returns
operator !=(ValidationError, ValidationError)
public static bool operator !=(ValidationError left, ValidationError right)
Parameters
leftValidationErrorrightValidationError