NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataError Constructor ()

Initializes a new instance of the DataError class.

[Visual Basic]
Overloads Public Sub New()
[C#]
public DataError();
[C++]
public: DataError();
[JScript]
public function DataError();

Example [Visual Basic]

The following example constructs 10 DataError objects, and assigns each to the Error property of a DataRow.

[Visual Basic]

Private Sub SetErrors()
   Dim t As DataTable
   ' Get table 0 of a DataSet.
   t = DataSet1.Tables(0)
   Dim i As Integer
   ' Declare temporary DataError variable.
   Dim de As DataError

   ' Set DataError objects for 10 rows.
   For i = 1 To 10
      de = New DataError
      de.SetText t.rows(i)(1) & " Row Error"
      t.Rows(i).Error = de
   Next
 End Sub

See Also

DataError Class | DataError Members | System.Data Namespace | DataError Constructor Overload List