Table of Contents

Class Report

Namespace
Dynamicweb.Ecommerce.Orders.Validation
Assembly
Dynamicweb.Ecommerce.dll
The class Report represents validation report.
[Serializable]
public class Report : IEnumerable<ValidationError>, IEnumerable
Inheritance
Report
Implements
Inherited Members
Extension Methods

Constructors

Report(int)

Initializes a new instance of the Report class.
public Report(int stepNum)

Parameters

stepNum int
The number of validation step.

Properties

StepNum

Gets the number of validation step.
public int StepNum { get; }

Property Value

int

Methods

Add(ValidationField, string)

Adds new ValidationError to the report created with given field and error message.
public void Add(ValidationField validationField, string errorMsg)

Parameters

validationField ValidationField
The validation field.
errorMsg string
The error message.

Count()

Counts the report validation errors.
public int Count()

Returns

int

GetEnumerator()

Gets the IEnumerator of the report validation error collection.
public IEnumerator<ValidationError> GetEnumerator()

Returns

IEnumerator<ValidationError>

GetEnumerator1()

Gets the IEnumerator of the report validation error collection.
public IEnumerator GetEnumerator1()

Returns

IEnumerator

Item(int)

Gets validation error by the index.
public ValidationError Item(int index)

Parameters

index int
The index.

Returns

ValidationError
To top