DataRow.GetColumnError メソッド (String)
アセンブリ: System.Data (system.data.dll 内)

Dim instance As DataRow Dim columnName As String Dim returnValue As String returnValue = instance.GetColumnError(columnName)
- columnName
列の名前。
エラーの説明のテキスト。

SetColumnError メソッドを使用して、列エラーを設定します。
列コレクションにエラーがあるかどうかを判断するには、HasErrors メソッドを使用します。このため、GetColumnsInError メソッドを使用して、エラーがあるすべての列を取得できます。

指定した DataRow にエラーの説明を設定する例を次に示します。
Private Sub SetColError(ByVal row As DataRow, _ byVal columnIndex As Integer) Dim errorString As String = "Replace this text." ' Set the error for the specified column of the row. row.SetColumnError(columnIndex, errorString) End Sub Private Sub PrintColError( _ ByVal row As DataRow, byVal columnIndex As Integer) ' Print the error of a specified column. Console.WriteLine(row.GetColumnError(columnIndex)) End Sub
private void SetColError(DataRow row, int columnIndex) { string errorString = "Replace this text."; // Set the error for the specified column of the row. row.SetColumnError(columnIndex, errorString); } private void PrintColError(DataRow row, int columnIndex) { // Print the error of a specified column. Console.WriteLine(row.GetColumnError(columnIndex)); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DataRow.GetColumnError メソッド (DataColumn)
アセンブリ: System.Data (system.data.dll 内)

Dim instance As DataRow Dim column As DataColumn Dim returnValue As String returnValue = instance.GetColumnError(column)
- column
DataColumn。
エラーの説明のテキスト。

SetColumnError メソッドを使用して、列エラーを設定します。
列コレクションにエラーがあるかどうかを判断するには、HasErrors メソッドを使用します。このため、GetColumnsInError メソッドを使用して、エラーがあるすべての列を取得できます。DataTable の GetErrors メソッドを使用して、エラーのあるすべての行を返すこともできます。

指定した DataRow にエラーの説明を設定する例を次に示します。
Private Sub SetColError(ByVal row As DataRow, _ byVal columnIndex As Integer) Dim errorString As String = "Replace this text." ' Set the error for the specified column of the row. row.SetColumnError(columnIndex, errorString) End Sub Private Sub PrintColError( _ ByVal row As DataRow, byVal columnIndex As Integer) ' Print the error of a specified column. Console.WriteLine(row.GetColumnError(columnIndex)) End Sub
private void SetColError(DataRow row, int columnIndex) { string errorString = "Replace this text."; // Set the error for the specified column of the row. row.SetColumnError(columnIndex, errorString); } private void PrintColError(DataRow row, int columnIndex) { // Print the error of a specified column. Console.WriteLine(row.GetColumnError(columnIndex)); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DataRow.GetColumnError メソッド (Int32)
アセンブリ: System.Data (system.data.dll 内)

Dim instance As DataRow Dim columnIndex As Integer Dim returnValue As String returnValue = instance.GetColumnError(columnIndex)
戻り値
エラーの説明のテキスト。


SetColumnError メソッドを使用して、列エラーを設定します。
列コレクションにエラーがあるかどうかを判断するには、HasErrors メソッドを使用します。このため、GetColumnsInError メソッドを使用して、エラーがあるすべての列を取得できます。

指定した DataRow にエラーの説明を設定する例を次に示します。
Private Sub SetColError(ByVal row As DataRow, _ byVal columnIndex As Integer) Dim errorString As String = "Replace this text." ' Set the error for the specified column of the row. row.SetColumnError(columnIndex, errorString) End Sub Private Sub PrintColError( _ ByVal row As DataRow, byVal columnIndex As Integer) ' Print the error of a specified column. Console.WriteLine(row.GetColumnError(columnIndex)) End Sub
private void SetColError(DataRow row, int columnIndex) { string errorString = "Replace this text."; // Set the error for the specified column of the row. row.SetColumnError(columnIndex, errorString); } private void PrintColError(DataRow row, int columnIndex) { // Print the error of a specified column. Console.WriteLine(row.GetColumnError(columnIndex)); }

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DataRow.GetColumnError メソッド

名前 | 説明 |
---|---|
DataRow.GetColumnError (DataColumn) | 指定した DataColumn のエラーの説明を取得します。 .NET Compact Framework によってサポートされています。 |
DataRow.GetColumnError (Int32) | インデックスで指定した列のエラーの説明を取得します。 .NET Compact Framework によってサポートされています。 |
DataRow.GetColumnError (String) | 名前で指定した列のエラーの説明を取得します。 .NET Compact Framework によってサポートされています。 |

- DataRow.GetColumnError メソッドのページへのリンク