ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
ToDataTable(RecordSet,Int32) Method
See Also  Send Feedback
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 ESRI.ArcGIS.ADF.ArcGISServer.RecordSet, _
   ByVal maxRecords As Integer _
) As DataTable
Visual Basic (Usage)Copy Code
Dim recordSet As ESRI.ArcGIS.ADF.ArcGISServer.RecordSet
Dim maxRecords As Integer
Dim value As DataTable
 
value = Converter.ToDataTable(recordSet, maxRecords)
C# 
public static DataTable ToDataTable( 
   ESRI.ArcGIS.ADF.ArcGISServer.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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.