ESRI.ArcGIS.ADF.Web.UI.WebControls
GetGraphicsLayerClientID Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.UI.WebControls Namespace > Map Class : GetGraphicsLayerClientID Method




layer
GraphicsLayer
Gets the Client Component ID for a given client graphics layer added to the map.

Syntax

Visual Basic (Declaration) 
Public Function GetGraphicsLayerClientID( _
   ByVal layer As ESRI.ArcGIS.ADF.Web.Display.Graphics.GraphicsLayer _
) As String
Visual Basic (Usage)Copy Code
Dim instance As Map
Dim layer As ESRI.ArcGIS.ADF.Web.Display.Graphics.GraphicsLayer
Dim value As String
 
value = instance.GetGraphicsLayerClientID(layer)
C# 
public string GetGraphicsLayerClientID( 
   ESRI.ArcGIS.ADF.Web.Display.Graphics.GraphicsLayer layer
)

Parameters

layer
GraphicsLayer

Return Value

ID used on the client

Remarks

The client ID can be used to get the javascript component on the client using:
            var layer = $find(clientId); //Returns an ESRI.ADF.Graphics.GraphicFeatureGroup instance
            

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.