Table of Contents

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

validationField ValidationField

The validation field.

errorMessage string

The validation error message.

Fields

ErrorMessage

Gets or sets the validation error message.

public string ErrorMessage

Field Value

string

ValidationField

Gets or sets the validation field.

public ValidationField ValidationField

Field Value

ValidationField

Methods

Equals(ValidationError)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(ValidationError other)

Parameters

other ValidationError

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and 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

left ValidationError
right ValidationError

Returns

bool

operator !=(ValidationError, ValidationError)

public static bool operator !=(ValidationError left, ValidationError right)

Parameters

left ValidationError
right ValidationError

Returns

bool
To top