ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
GetLayerNameFromID Method
See Also 
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 MapServerInfo, _
   ByVal layerID As Integer _
) As String
Visual Basic (Usage)Copy Code
Dim mapServerInfo As MapServerInfo
Dim layerID As Integer
Dim value As String
 
value = MapFunctionality.GetLayerNameFromID(mapServerInfo, layerID)
C# 
public static string GetLayerNameFromID( 
   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.

See Also

© 2010 All Rights Reserved.