Fill(DataTable) Method

Syntax:

public int Fill(DataTable dataTable)

Description:

Adds or refreshes rows in the DataTable.

Parameters:

dataTable

Type: System.Data.DataTable

The DataTable to fill with records and, if necessary, schema.

Return Value:

Type: System.Int32

The number of rows successfully added to or refreshed in the DataTable.

Reference:

For more information, reference MSDN documentation for: System.Data.Common.DbDataAdapter.Fill(DataSet)