ESRI.ArcGIS.ADF.Web.UI.WebControls
GetGraphicsLayerClientID Method
See Also 
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 GraphicsLayer _
) As String
Visual Basic (Usage)Copy Code
Dim instance As Map
Dim layer As GraphicsLayer
Dim value As String
 
value = instance.GetGraphicsLayerClientID(layer)
C# 
public string GetGraphicsLayerClientID( 
   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

See Also

© 2010 All Rights Reserved.