In This Topic
Updates the values in the database by executing the respective INSERT, UPDATE, or DELETE statements for each inserted, updated, or deleted row in the specified System.Data.DataTable.
Syntax
'Declaration
Public Overloads Function Update( _
ByVal As System.Data.DataTable _
) As System.Integer
'Usage
Dim instance As VistaDBDataAdapter
Dim dataTable As System.Data.DataTable
Dim value As System.Integer
value = instance.Update(dataTable)
public System.int Update(
System.Data.DataTable
)
Parameters
- dataTable
- The System.Data.DataTable used to update the data source.
Return Value
The number of rows successfully updated from the System.Data.DataTable.
Exceptions
Exception | Description |
System.ArgumentNullException | The System.Data.DataSet is invalid. |
System.InvalidOperationException | The source table is invalid. |
System.SystemException | No System.Data.DataRow exists to update.
-or-
No System.Data.DataTable exists to update.
-or-
No System.Data.DataSet exists to use as a source. |
System.Data.DBConcurrencyException | An attempt to execute an INSERT, UPDATE, or DELETE statement resulted in zero records affected. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also