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




layerIDs
An array that will hold the layer IDs after the method is called.
layerNames
An array that will hold the layer names after the method is called.
Retrieves the IDs and names of layers in the graphics resource.

Syntax

Visual Basic (Declaration) 
Public Sub GetLayers( _
   ByRef layerIDs As String(), _
   ByRef layerNames As String() _
) 
Visual Basic (Usage)Copy Code
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
An array that will hold the layer IDs after the method is called.
layerNames
An array that will hold the layer names after the method is called.

Remarks

This method retrieves the names and IDs of graphics layers in the map resource. Include the layerIDs and layerNames variables when calling the method. These variables should be declared before calling the method, but do not need to be instantiated or filled beforehand. Once the method runs, the arrays will contain the IDs and names for subsequent use in your code.

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.