VistaDB 6
VistaDB.Provider Namespace / VistaDBDataAdapter Class / FillSchema Method / FillSchema(DataSet,SchemaType,String) Method
A System.Data.DataSet to insert the schema in.
One of the System.Data.SchemaType values that specify how to insert the schema.
The name of the source table to use for table mapping.


In This Topic
    FillSchema(DataSet,SchemaType,String) 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 upon the specified System.Data.SchemaType and System.Data.DataTable.
    Syntax
    'Declaration
     
    
    Public Overloads Function FillSchema( _
       ByVal dataSet As System.Data.DataSet, _
       ByVal schemaType As System.Data.SchemaType, _
       ByVal srcTable As System.String _
    ) As System.Data.DataTable()
    'Usage
     
    
    Dim instance As VistaDBDataAdapter
    Dim dataSet As System.Data.DataSet
    Dim schemaType As System.Data.SchemaType
    Dim srcTable As System.String
    Dim value() As System.Data.DataTable
     
    value = instance.FillSchema(dataSet, schemaType, srcTable)
    public System.Data.DataTable[] FillSchema( 
       System.Data.DataSet dataSet,
       System.Data.SchemaType schemaType,
       System.string srcTable
    )

    Parameters

    dataSet
    A System.Data.DataSet to insert the schema in.
    schemaType
    One of the System.Data.SchemaType values that specify how to insert the schema.
    srcTable
    The name of the source table to use for table mapping.

    Return Value

    A reference to a collection of System.Data.DataTable objects that were added to the System.Data.DataSet.
    Exceptions
    ExceptionDescription
    A source table from which to get the schema could not be found.
    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