CodeCharge Studio All C#.NET VB.NET

errors Run-Time Property (.NET)

Applies to

Calendar Form, EditableGrid Form, Path Control, Directory Form, Record Form, Report Form

Syntax

C#.NET

public System.Collections.Specialized.NameValueCollection errors{get;}

VB.NET

Public ReadOnly Property Errors() As System.Collections.Specialized.NameValueCollection

Description

This property keeps the reference to the object’s errors collection. It is used to collect error messages generated during the object’s execution.

Examples

C#.NET

item.errors.Add("TextBox1","The value in field TextBox1 is required.");

VB.NET

item.errors.Add("TextBox1","The value in field TextBox1 is required.")


On-line, printable versions and updates