VistaDB 6
VistaDB.Provider Namespace / VistaDBDataAdapter Class / Fill Method / Fill(DataTable,IDbCommand,CommandBehavior) Method
A System.Data.DataTable to fill with records and, if necessary, schema.
The SQL SELECT statement used to retrieve rows from the data source.
One of the System.Data.CommandBehavior values.


In This Topic
    Fill(DataTable,IDbCommand,CommandBehavior) Method
    In This Topic
    Adds or refreshes rows in a System.Data.DataTable to match those in the data source using the specified System.Data.DataTable, System.Data.IDbCommand and System.Data.CommandBehavior.
    Syntax
    'Declaration
     
    
    Protected Overloads Function Fill( _
       ByVal dataTable As System.Data.DataTable, _
       ByVal command As System.Data.IDbCommand, _
       ByVal behavior As System.Data.CommandBehavior _
    ) As System.Integer
    'Usage
     
    
    Dim instance As VistaDBDataAdapter
    Dim dataTable As System.Data.DataTable
    Dim command As System.Data.IDbCommand
    Dim behavior As System.Data.CommandBehavior
    Dim value As System.Integer
     
    value = instance.Fill(dataTable, command, behavior)
    protected System.int Fill( 
       System.Data.DataTable dataTable,
       System.Data.IDbCommand command,
       System.Data.CommandBehavior behavior
    )

    Parameters

    dataTable
    A System.Data.DataTable to fill with records and, if necessary, schema.
    command
    The SQL SELECT statement used to retrieve rows from the data source.
    behavior
    One of the System.Data.CommandBehavior values.

    Return Value

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