ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
ToDataTable(RecordSet,Int32) Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > Converter Class > ToDataTable Method : ToDataTable(RecordSet,Int32) Method




recordSet
The RecordSet to convert.
maxRecords
The maximum number of records to convert.
Converts the Recordset to a DataTable, up to the number of records specified.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function ToDataTable( _
   ByVal recordSet As RecordSet, _
   ByVal maxRecords As Integer _
) As DataTable
Visual Basic (Usage)Copy Code
Dim recordSet As RecordSet
Dim maxRecords As Integer
Dim value As DataTable
 
value = Converter.ToDataTable(recordSet, maxRecords)
C# 
public static DataTable ToDataTable( 
   RecordSet recordSet,
   int maxRecords
)

Parameters

recordSet
The RecordSet to convert.
maxRecords
The maximum number of records to convert.

Return Value

The DataTable with equivalent fields and rows as the Recordset.

See Also

© 2010 All Rights Reserved.