VistaDB 6
VistaDB.Provider Namespace / VistaDBDataAdapter Class / FillSchema Method / FillSchema(DataSet,SchemaType,IDbCommand,String,CommandBehavior) Method
The System.Data.DataSet to be filled with the schema from the data source.
One of the System.Data.SchemaType values.
The SQL SELECT statement used to retrieve rows from the data source.
The name of the source table to use for table mapping.
One of the System.Data.CommandBehavior values.


In This Topic
    FillSchema(DataSet,SchemaType,IDbCommand,String,CommandBehavior) Method
    In This Topic
    Adds a System.Data.DataTable to the specified System.Data.DataSet and configures the schema to match that in the data source based on the specified System.Data.SchemaType.
    Syntax
    'Declaration
     
    
    Protected Overloads Function FillSchema( _
       ByVal dataSet As System.Data.DataSet, _
       ByVal schemaType As System.Data.SchemaType, _
       ByVal command As System.Data.IDbCommand, _
       ByVal srcTable As System.String, _
       ByVal behavior As System.Data.CommandBehavior _
    ) As System.Data.DataTable()
    'Usage
     
    
    Dim instance As VistaDBDataAdapter
    Dim dataSet As System.Data.DataSet
    Dim schemaType As System.Data.SchemaType
    Dim command As System.Data.IDbCommand
    Dim srcTable As System.String
    Dim behavior As System.Data.CommandBehavior
    Dim value() As System.Data.DataTable
     
    value = instance.FillSchema(dataSet, schemaType, command, srcTable, behavior)
    protected System.Data.DataTable[] FillSchema( 
       System.Data.DataSet dataSet,
       System.Data.SchemaType schemaType,
       System.Data.IDbCommand command,
       System.string srcTable,
       System.Data.CommandBehavior behavior
    )

    Parameters

    dataSet
    The System.Data.DataSet to be filled with the schema from the data source.
    schemaType
    One of the System.Data.SchemaType values.
    command
    The SQL SELECT statement used to retrieve rows from the data source.
    srcTable
    The name of the source table to use for table mapping.
    behavior
    One of the System.Data.CommandBehavior values.

    Return Value

    An array of System.Data.DataTable objects that contain schema information returned from the data source.
    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