Verastream Host Integrator .Net Reference

HostIntegratorSession.FetchRecords Method (Int32, IList)

Fetches data from the Host Integrator server for the current recordset of the current entity.

[Visual Basic]
Overloads Public Function FetchRecords( _
   ByVal maxRows As Integer, _
   ByVal fieldNames As IList _
) As DataSet
public DataSet FetchRecords(
   int maxRows,
   IList fieldNames


Specifies the maximum number of rows of data to be returned. If maxRows is set to 0, no limit is imposed on the number of rows returned.
Specifies field names to fetch from the recordset.

Return Value

This method returns a DataSet containing the requested records. If no fields match the fieldNames provided, an empty DataSet is returned.


The set of records returned begins with the first record following the current record. If the current record is before the first record in the recordset, searching starts with the first record. After a FetchRecords, the current record is the last record included in the returned set of records.


Exception TypeCondition
HostIntegratorConnectorExceptionThrown when client is not connected
HostIntegratorTerminalExceptionThrown if there is an execution error
HostIntegratorModelDataExceptionThrown if a reference is made to a nonexistent field
HostIntegratorExceptionThrown if the connection is for metadata only
HostIntegratorModelDefExceptionThrown if there is no current recordset

See Also

HostIntegratorSession Class | HostIntegratorSession Members | WRQ.Verastream.HostIntegrator Namespace | HostIntegratorSession.FetchRecords Overload List