Export (0) Print
Expand All

DataAdapter.Fill Method (DataTable[], IDataReader, Int32, Int32)

Adds or refreshes rows in a specified range in the collection of DataTable objects to match those in the data source.

Namespace: System.Data.Common
Assembly: System.Data (in system.data.dll)

'Declaration
Protected Overridable Function Fill ( _
	dataTables As DataTable(), _
	dataReader As IDataReader, _
	startRecord As Integer, _
	maxRecords As Integer _
) As Integer
'Usage
Dim dataTables As DataTable()
Dim dataReader As IDataReader
Dim startRecord As Integer
Dim maxRecords As Integer
Dim returnValue As Integer

returnValue = Me.Fill(dataTables, dataReader, startRecord, maxRecords)
protected int Fill (
	DataTable[] dataTables, 
	IDataReader dataReader, 
	int startRecord, 
	int maxRecords
)
protected function Fill (
	dataTables : DataTable[], 
	dataReader : IDataReader, 
	startRecord : int, 
	maxRecords : int
) : int
Not applicable.

Parameters

dataTables

A collection of DataTable objects to fill with records.

dataReader

An instance of IDataReader.

startRecord

An integer indicating the location of the starting record.

maxRecords

An integer indicating the maximum number of records.

Return Value

The number of rows successfully added to or refreshed in the DataTable. This does not include rows affected by statements that do not return rows.

See the remarks for System.Data.Common.DataAdapter.Fill(System.Data.DataSet) for additional information.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

.NET Compact Framework

Supported in: 2.0

XNA Framework

Supported in: 1.0

Community Additions

ADD
Show:
© 2014 Microsoft