ESRI.ArcGIS.ADF.Web.DataSources
Query Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources Namespace > IQueryFunctionality Interface : Query Method




mapFunctionalityName
Name of the map functionality. If null, queries the GraphicsDataSet of the current graphics resource.
layerID
ID of the layer to query.
queryFilter
Filter with the parameters for the query.
Queries a layer for features matching the filter parameters.

Syntax

Visual Basic (Declaration) 
Function Query( _
   ByVal mapFunctionalityName As String, _
   ByVal layerID As String, _
   ByVal queryFilter As QueryFilter _
) As DataTable
Visual Basic (Usage)Copy Code
Dim instance As IQueryFunctionality
Dim mapFunctionalityName As String
Dim layerID As String
Dim queryFilter As QueryFilter
Dim value As DataTable
 
value = instance.Query(mapFunctionalityName, layerID, queryFilter)
C# 
DataTable Query( 
   string mapFunctionalityName,
   string layerID,
   QueryFilter queryFilter
)

Parameters

mapFunctionalityName
Name of the map functionality. If null, queries the GraphicsDataSet of the current graphics resource.
layerID
ID of the layer to query.
queryFilter
Filter with the parameters for the query.

Return Value

DataTable with features. Table may be a FeatureGraphicsLayer or ElementGraphicsLayer if search options includes returning geometries.

Remarks

Locates features in one layer that match the input parameters. A DataTable is returned with features found. If the queryFilter specifies an option to return feature geometries, the DataTable will be either a FeatureGraphicsLayer or a ElementGraphicsLayer, depending on the type of layer queried.

See Also

© 2010 All Rights Reserved.