ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
SetLayerVisibility Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > MapTocFunctionality Class : SetLayerVisibility Method




mapFunctionalityName
Name of the map functionality.
layerID
ID of the layer.
visible
True to set visible, false to set invisible.
Sets the specified layer to be visible or not.

Syntax

Visual Basic (Declaration) 
Public Sub SetLayerVisibility( _
   ByVal mapFunctionalityName As String, _
   ByVal layerID As Object, _
   ByVal visible As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As MapTocFunctionality
Dim mapFunctionalityName As String
Dim layerID As Object
Dim visible As Boolean
 
instance.SetLayerVisibility(mapFunctionalityName, layerID, visible)
C# 
public void SetLayerVisibility( 
   string mapFunctionalityName,
   object layerID,
   bool visible
)

Parameters

mapFunctionalityName
Name of the map functionality.
layerID
ID of the layer.
visible
True to set visible, false to set invisible.

See Also

© 2010 All Rights Reserved.