संपादित करें

इसके माध्यम से साझा किया गया


DBConcurrencyException.CopyToRows Method

Definition

Copies the DataRow objects whose update failure generated this exception to the specified array.

Overloads

CopyToRows(DataRow[])

Copies the DataRow objects whose update failure generated this exception, to the specified array of DataRow objects.

CopyToRows(DataRow[], Int32)

Copies the DataRow objects whose update failure generated this exception, to the specified array of DataRow objects, starting at the specified destination array index.

CopyToRows(DataRow[])

Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs

Copies the DataRow objects whose update failure generated this exception, to the specified array of DataRow objects.

public:
 void CopyToRows(cli::array <System::Data::DataRow ^> ^ array);
public void CopyToRows (System.Data.DataRow[] array);
member this.CopyToRows : System.Data.DataRow[] -> unit
Public Sub CopyToRows (array As DataRow())

Parameters

array
DataRow[]

The one-dimensional array of DataRow objects to copy the DataRow objects into.

Remarks

When performing batch updates with the ContinueUpdateOnError property of the DataAdapter set to true, this exception is thrown if all row updates fail. In this case, this DBConcurrencyException contains DataRow objects for all rows whose update failed, rather than just the one DataRow object in Row, and the affected DataRow objects can be retrieved by calling CopyToRows.

See also

Applies to

CopyToRows(DataRow[], Int32)

Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs
Source:
DBConcurrencyException.cs

Copies the DataRow objects whose update failure generated this exception, to the specified array of DataRow objects, starting at the specified destination array index.

public:
 void CopyToRows(cli::array <System::Data::DataRow ^> ^ array, int arrayIndex);
public void CopyToRows (System.Data.DataRow[] array, int arrayIndex);
member this.CopyToRows : System.Data.DataRow[] * int -> unit
Public Sub CopyToRows (array As DataRow(), arrayIndex As Integer)

Parameters

array
DataRow[]

The one-dimensional array of DataRow objects to copy the DataRow objects into.

arrayIndex
Int32

The destination array index to start copying into.

Remarks

When performing batch updates with the ContinueUpdateOnError property of the DataAdapter set to true, this exception is thrown if all row updates fail. In this case, this DBConcurrencyException contains DataRow objects for all rows whose update failed, rather than just the one DataRow object in Row, and the affected DataRow objects can be retrieved by calling CopyToRows.

See also

Applies to