ArcObjects Library Reference  (Carto)    

IMapServerSublayer Interface

Provides access to the available properties of a map server sublayer object. Note: the IMapServerSublayer interface has been superseded by IMapServerSublayer2. Please consider using the more recent version.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Members

Description
Read-only property HasLabels Indicates if the layer has labels to turn on and off.
Read-only property LayerDescription The layer description.
Read/write property ScaleSymbols Indicates whether the layer should scale its symbols according to the reference scale.
Read/write property ShowLabels Indicates whether the layer should display its dynamic labels.

CoClasses that implement IMapServerSublayer

CoClasses and Classes Description
MapServerBasicSublayer Provides programmatic access to a basic map server sublayer.
MapServerFindSublayer Provides programmatic access to a map server sublayer with Find capability.
MapServerIdentifySublayer Provides programmatic access to a map server sublayer with Identify capability.
MapServerQuerySublayer Provides programmatic access to a map server sublayer with Find and Identify capability.
[Visual Basic 6.0]

The following example shows how to change the visibility for a MapServerSubLayer.

Example

Toggle MapServerSubLayer Visibility