Class ValidationErrorCollection

A collection of ValidationError objects that is used to collect validation errors during validation of the business object Validate() method calls.

Namespace: Westwind.BusinessObjects
Inherits: CollectionBase

System.Object
  Westwind.BusinessObject.ValidationErrorCollection

Class Members

MemberDescription

Add

Adds a new error to the collection

public Void Add(ValidationError Error)

public Void Add(String Message, String FieldName, String ID)

public Void Add(String Message)

public Void Add(String Message, String FieldName)

Assert

Asserts a business rule - if condition is true it's added otherwise not.

public bool Assert(bool Condition, ValidationError Error)

public bool Assert(bool Condition, string Message, string FieldName, string ID)

public bool Assert(bool Condition, string Message)

public void Assert(bool Condition, string Message, string FieldName)

Item

Indexer method that returns an individual item

public ValidationError this[int index]

Remove

Removes the item specified in the index from the Error collection

public Void Remove(Int32 Index)

ToHtml

Returns an HTML representation of the errors in this collection.

public String ToHtml()

ToString

Returns a string representation of the validation error messages separated by CR LFs.

public String ToString()


© West Wind Technologies, 1996-2018 • Updated: 12/07/05
Comment or report problem with topic