ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
GetLayerInfo(Int32,MapLayerInfo[]) Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > MapFunctionality Class > GetLayerInfo Method : GetLayerInfo(Int32,MapLayerInfo[]) Method




layerID
ID of the layer.
layerInfos
Array of MapLayerInfo objects for the data source.
Gets the MapLayerInfo object for the specified layer.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function GetLayerInfo( _
   ByVal layerID As Integer, _
   ByVal layerInfos() As ESRI.ArcGIS.ADF.ArcGISServer.MapLayerInfo _
) As ESRI.ArcGIS.ADF.ArcGISServer.MapLayerInfo
Visual Basic (Usage)Copy Code
Dim layerID As Integer
Dim layerInfos() As ESRI.ArcGIS.ADF.ArcGISServer.MapLayerInfo
Dim value As ESRI.ArcGIS.ADF.ArcGISServer.MapLayerInfo
 
value = MapFunctionality.GetLayerInfo(layerID, layerInfos)
C# 
public static ESRI.ArcGIS.ADF.ArcGISServer.MapLayerInfo GetLayerInfo( 
   int layerID,
   ESRI.ArcGIS.ADF.ArcGISServer.MapLayerInfo[] layerInfos
)

Parameters

layerID
ID of the layer.
layerInfos
Array of MapLayerInfo objects for the data source.

Return Value

MapLayerInfo object for the layer.

Remarks

The MapLayerInfo:ESRI.ArcGIS.ADF.ArcGISServer.MapLayerInfo% has information about the layer including minimum and maximum scales, attribute fields, IDs of any sub-layers, etc.

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.