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 (String)

Initializes a new instance of the DataError class using the specified error text.

[Visual Basic]
Overloads Public Sub New( _
   ByVal rowError As String _
)
[C#]
public DataError(
   string rowError
);
[C++]
public: DataError(
   String* rowError
);
[JScript]
public function DataError(
   rowError : String
);

Parameters

rowError
The error messsage for the DataError.

Example [Visual Basic]

[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("Row Error: " & t.rows(i)(1))
      t.Rows(i).Error = de
   Next
End Sub

See Also

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