DBConcurrencyException.CopyToRows Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
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
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
- 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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om