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 );
[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
DataError Class | DataError Members | System.Data Namespace | DataError Constructor Overload List