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




mapFunctionalityName
Name of the map functionality. If null, uses the functionality associated with the current functionality.
layerIDs
Output parameter: IDs of queryable layers.
layerNames
Output parameter: names of queryable layers.
Gets the IDs and names of layers that may be queried.

Syntax

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

Parameters

mapFunctionalityName
Name of the map functionality. If null, uses the functionality associated with the current functionality.
layerIDs
Output parameter: IDs of queryable layers.
layerNames
Output parameter: names of queryable layers.

Return Value

The FeatureType of layers to find (Point, Line or Polygon).

Remarks

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

See Also

© 2010 All Rights Reserved.