ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
ToRecordSet(DataTable,String) Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > Converter Class : ToRecordSet(DataTable,String) Method




table
The DataTable to convert.
OIDColumnName
The column contained object ID values for the table.
Converts a .NET DataTable to an ArcGIS Server ADF RecordSet.

Syntax

Visual Basic (Declaration) 
Public Shared Function ToRecordSet( _
   ByVal table As DataTable, _
   ByVal OIDColumnName As String _
) As ESRI.ArcGIS.ADF.ArcGISServer.RecordSet
Visual Basic (Usage)Copy Code
Dim table As DataTable
Dim OIDColumnName As String
Dim value As ESRI.ArcGIS.ADF.ArcGISServer.RecordSet
 
value = Converter.ToRecordSet(table, OIDColumnName)
C# 
public static ESRI.ArcGIS.ADF.ArcGISServer.RecordSet ToRecordSet( 
   DataTable table,
   string OIDColumnName
)

Parameters

table
The DataTable to convert.
OIDColumnName
The column contained object ID values for the table.

Return Value

A RecordSet with the same fields and records.

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.