ArcGIS API for WPF - Library Reference
SetLayerVisibility Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client Namespace > ArcGISTiledMapServiceLayer Class : SetLayerVisibility Method

layerID
The sublayer ID.
visible
The sublayer visibility.
Sets the sublayer visibility.

Syntax

Visual Basic (Declaration) 
Public Sub SetLayerVisibility( _
   ByVal layerID As Integer, _
   ByVal visible As Boolean _
) 
C# 
public void SetLayerVisibility( 
   int layerID,
   bool visible
)

Parameters

layerID
The sublayer ID.
visible
The sublayer visibility.

Remarks

For a tiled map service, the sublayer visibilities can't be changed, so this method is doing nothing.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© ESRI, Inc. All Rights Reserved.