![]() ![]() |
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer | |
GetLayers Method | |
See Also Send Feedback |
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > MapFunctionality Class : GetLayers Method |
- layerIDs
- Output parameter: an array of IDs of layers and stand alone tables in the map service, as strings.
- layerNames
- Output parameter: an array of names of layers and stand alone tables in the map service, as strings.
Visual Basic (Declaration) | |
---|---|
Public Sub GetLayers( _ ByRef layerIDs As String(), _ ByRef layerNames As String() _ ) |
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As MapFunctionality Dim layerIDs As String() Dim layerNames As String() instance.GetLayers(layerIDs, layerNames) |
C# | |
---|---|
public void GetLayers( out string[] layerIDs, out string[] layerNames ) |
Parameters
- layerIDs
- Output parameter: an array of IDs of layers and stand alone tables in the map service, as strings.
- layerNames
- Output parameter: an array of names of layers and stand alone tables in the map service, as strings.
Use this method to retrieve the layer names and IDs. The layer information may be used for tasks such as setting layer visibility with SetLayerVisibility, where the ID of the layer is required; use GetLayers to obtain and iterate through the list of layers to find the ID corresponding to the layer name.
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