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




recordSet
The RecordSet to convert.
maxRecords
The maximum number of records to convert.
returnFeatureGraphicsLayer
Whether to return the DataTable as a Web ADF ESRI.ArcGIS.ADF.Web.Display.Graphics.FeatureGraphicsLayer.
geometryColumn
The column in the Recordset that contains the geometry of the features.
oidColumn
The column in the Recordset that contains unique object IDs of features.
Converts the Recordset to a DataTable using the specified geometry and object ID columns.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function ToDataTable( _
   ByVal recordSet As RecordSet, _
   ByVal maxRecords As Integer, _
   ByVal returnFeatureGraphicsLayer As Boolean, _
   ByRef geometryColumn As String, _
   ByRef oidColumn As String _
) As DataTable
Visual Basic (Usage)Copy Code
Dim recordSet As RecordSet
Dim maxRecords As Integer
Dim returnFeatureGraphicsLayer As Boolean
Dim geometryColumn As String
Dim oidColumn As String
Dim value As DataTable
 
value = Converter.ToDataTable(recordSet, maxRecords, returnFeatureGraphicsLayer, geometryColumn, oidColumn)
C# 
public static DataTable ToDataTable( 
   RecordSet recordSet,
   int maxRecords,
   bool returnFeatureGraphicsLayer,
   ref string geometryColumn,
   ref string oidColumn
)

Parameters

recordSet
The RecordSet to convert.
maxRecords
The maximum number of records to convert.
returnFeatureGraphicsLayer
Whether to return the DataTable as a Web ADF ESRI.ArcGIS.ADF.Web.Display.Graphics.FeatureGraphicsLayer.
geometryColumn
The column in the Recordset that contains the geometry of the features.
oidColumn
The column in the Recordset that contains unique object IDs of features.

Return Value

The DataTable with equivalent fields and rows as the Recordset.

See Also

© 2010 All Rights Reserved.