ESRI.ArcGIS.ADF.Web.DataSources
SetLayerVisibility Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.DataSources Namespace > IMapFunctionality Interface : SetLayerVisibility Method




layerID
ID of the layer.
visible
True to set to visible, false to set to not visible.
Sets the visibility of the layer.

Syntax

Visual Basic (Declaration) 
Sub SetLayerVisibility( _
   ByVal layerID As String, _
   ByVal visible As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As IMapFunctionality
Dim layerID As String
Dim visible As Boolean
 
instance.SetLayerVisibility(layerID, visible)
C# 
void SetLayerVisibility( 
   string layerID,
   bool visible
)

Parameters

layerID
ID of the layer.
visible
True to set to visible, false to set to not visible.

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.