VistaDB 6
VistaDB.Provider Namespace / VistaDBDataAdapter Class / Update Method / Update(DataSet,String) Method
The System.Data.DataSet to use to update the data source.
The name of the source table to use for table mapping.


In This Topic
    Update(DataSet,String) Method
    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 System.Data.DataSet with the specified System.Data.DataTable name.
    Syntax
    'Declaration
     
    
    Public Overloads Function Update( _
       ByVal dataSet As System.Data.DataSet, _
       ByVal srcTable As System.String _
    ) As System.Integer
    'Usage
     
    
    Dim instance As VistaDBDataAdapter
    Dim dataSet As System.Data.DataSet
    Dim srcTable As System.String
    Dim value As System.Integer
     
    value = instance.Update(dataSet, srcTable)
    public System.int Update( 
       System.Data.DataSet dataSet,
       System.string srcTable
    )

    Parameters

    dataSet
    The System.Data.DataSet to use to update the data source.
    srcTable
    The name of the source table to use for table mapping.

    Return Value

    The number of rows successfully updated from the System.Data.DataSet.
    Exceptions
    ExceptionDescription
    The System.Data.DataSet is invalid.
    The source table is invalid.
    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