ESRI.ArcGIS.ADF.Web.UI.WebControls
GetLayerInfos Method
See Also 
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > MapResourceItem Class : GetLayerInfos Method




layerIDs
Layer IDs for layers to retrieve information about. May include group layers.
getFields
Whether to include information on attribute fields in the data returned.
Retrieves the LayerInfo items with data about each layer in the map resource.

Syntax

Visual Basic (Declaration) 
Public Function GetLayerInfos( _
   ByVal layerIDs() As String, _
   ByVal getFields As Boolean _
) As LayerInfoBase()
Visual Basic (Usage)Copy Code
Dim instance As MapResourceItem
Dim layerIDs() As String
Dim getFields As Boolean
Dim value() As LayerInfoBase
 
value = instance.GetLayerInfos(layerIDs, getFields)
C# 
public LayerInfoBase[] GetLayerInfos( 
   string[] layerIDs,
   bool getFields
)

Parameters

layerIDs
Layer IDs for layers to retrieve information about. May include group layers.
getFields
Whether to include information on attribute fields in the data returned.

Return Value

An array of layer info items, which may be cast to LayerInfo (for individual layers) or GroupLayerInfo (for group layers).

See Also

© 2010 All Rights Reserved.