VistaDB 6
VistaDB.Provider Namespace / VistaDBDataAdapter Class / Fill Method / Fill(DataSet,String) Method
A System.Data.DataSet to fill with records and, if necessary, schema.
The name of the source table to use for table mapping.


In This Topic
    Fill(DataSet,String) Method
    In This Topic
    Adds or refreshes rows in the System.Data.DataSet to match those in the data source using the System.Data.DataSet and System.Data.DataTable names.
    Syntax
    'Declaration
     
    
    Public Overloads Function Fill( _
       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.Fill(dataSet, srcTable)
    public System.int Fill( 
       System.Data.DataSet dataSet,
       System.string srcTable
    )

    Parameters

    dataSet
    A System.Data.DataSet to fill with records and, if necessary, schema.
    srcTable
    The name of the source table to use for table mapping.

    Return Value

    The number of rows successfully added to or refreshed in the System.Data.DataSet. This does not include rows affected by statements that do not return rows.
    Exceptions
    ExceptionDescription
    The source table is invalid.
    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