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
stepNumintThe number of validation step.
Properties
StepNum
Gets the number of validation step.
public int StepNum { get; }
Property Value
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
validationFieldValidationFieldThe validation field.
errorMsgstringThe error message.
Count()
Counts the report validation errors.
public int Count()
Returns
GetEnumerator()
Gets the IEnumerator of the report validation error collection.
public IEnumerator<ValidationError> GetEnumerator()
Returns
GetEnumerator1()
Gets the IEnumerator of the report validation error collection.
public IEnumerator GetEnumerator1()
Returns
Item(int)
Gets validation error by the index.
public ValidationError Item(int index)
Parameters
indexintThe index.