ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
GetQueryableLayersAndTables(String,String[],String[],FeatureType) Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > QueryFunctionality Class > GetQueryableLayersAndTables Method : GetQueryableLayersAndTables(String,String[],String[],FeatureType) Method




mapFunctionalityName
Name of the map functionality. If null, uses the functionality associated with the current functionality.
layerIDs
Output parameter: IDs of queryable layers and tables.
layerNames
Output parameter: names of queryable layers and tables.
featureType
The FeatureType of layers to find (Point, Line, Polygon, etc.). Specify FeatureType.None for standalone tables.
Gets the IDs and names of layers and tables that may be queried.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub GetQueryableLayersAndTables( _
   ByVal mapFunctionalityName As String, _
   ByRef layerIDs As String, _
   ByRef layerNames As String, _
   ByVal featureType As FeatureType _
) 
Visual Basic (Usage)Copy Code
Dim instance As QueryFunctionality
Dim mapFunctionalityName As String
Dim layerIDs As String
Dim layerNames As String
Dim featureType As FeatureType
 
instance.GetQueryableLayersAndTables(mapFunctionalityName, layerIDs, layerNames, featureType)
C# 
public void GetQueryableLayersAndTables( 
   string mapFunctionalityName,
   out string layerIDs,
   out string layerNames,
   FeatureType featureType
)

Parameters

mapFunctionalityName
Name of the map functionality. If null, uses the functionality associated with the current functionality.
layerIDs
Output parameter: IDs of queryable layers and tables.
layerNames
Output parameter: names of queryable layers and tables.
featureType
The FeatureType of layers to find (Point, Line, Polygon, etc.). Specify FeatureType.None for standalone tables.

Remarks

This method is typically used to find the ID of a layer or table based on its name. You can loop through the returned layerNames array, and get the ID of the corresponding layer or table from the layerIDs array.

See Also

© 2010 All Rights Reserved.