asp.net.ph

DataAdapter.FillSchema Method

System.Data.Common Namespace   DataAdapter Class


Loads a DataTable to the specified DataSet and configures the schema to match that in the data source based on the specified SchemaType.

[ VB ]
MustOverride Public Function FillSchema ( _
   ByVal dataSet As DataSet, _
   ByVal schemaType As SchemaType _
) As DataTable ( )

[ C# ]
public abstract DataTable [ ] FillSchema (
   DataSet dataSet,
   SchemaType schemaType
);

[ C++ ]
public: virtual DataTable* FillSchema (
   DataSet* dataSet,
   SchemaType schemaType
 ) [ ] = 0;

[ JScript ]
public abstract function FillSchema (
   dataSet : DataSet,
   schemaType : SchemaType
) : DataTable [ ];

Parameters

dataSet
The DataSet to be filled with the schema from the data source.
schemaType
One of the SchemaType values.

Return Value

An array of DataTable objects that contain schema information returned from the data source.

Remarks

Th FillSchema method adds a DataTable to a given DataSet object, and configures the table structure or schema to match that in the data source based on the given SchemaType.

When using FillSchema, the associated connection object need not be open. If the connection is closed before FillSchema is called, it is opened to retrieve data, then closed. If the connection is open before FillSchema is called, it remains open.

FillSchema also configures the PrimaryKey and Constraints properties of the specified table, if they exist at the data source.

FillSchema does not return any rows. To add rows to the DataTable, use the Fill method instead.

For more information, see Using the FillSchema Method.

See Also

DataAdapter Members   Fill Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph