ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
GetLayerNameFromID Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > MapFunctionality Class : GetLayerNameFromID Method




mapServerInfo
The MapServerInfo for the data source.
layerID
The ID of the layer.
Gets the layer name associated with the input layer ID.

Syntax

Visual Basic (Declaration) 
Public Shared Function GetLayerNameFromID( _
   ByVal mapServerInfo As ESRI.ArcGIS.ADF.ArcGISServer.MapServerInfo, _
   ByVal layerID As Integer _
) As String
Visual Basic (Usage)Copy Code
Dim mapServerInfo As ESRI.ArcGIS.ADF.ArcGISServer.MapServerInfo
Dim layerID As Integer
Dim value As String
 
value = MapFunctionality.GetLayerNameFromID(mapServerInfo, layerID)
C# 
public static string GetLayerNameFromID( 
   ESRI.ArcGIS.ADF.ArcGISServer.MapServerInfo mapServerInfo,
   int layerID
)

Parameters

mapServerInfo
The MapServerInfo for the data source.
layerID
The ID of the layer.

Return Value

The name of the corresponding layer.

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.