ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Send comments on this topic.
SetLayerVisibility Method
See Also 
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > MapFunctionality Class : 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) 
Public Sub SetLayerVisibility( _
   ByVal layerID As String, _
   ByVal visible As Boolean _
) 
Visual Basic (Usage)Copy Code
Dim instance As MapFunctionality
Dim layerID As String
Dim visible As Boolean
 
instance.SetLayerVisibility(layerID, visible)
C# 
public 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

© 2009 All Rights Reserved.