ArcObjects Library Reference  (Carto)    

IMapServerLayer Interface

Provides access to the available properties of a map server layer object.

Product Availability

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


Read-only property BackgroundColor The background color of a map server layer object.
Method ClearDrawCache Clears the cache of images downloaded from the server redraw.
Method GetConnectionInfo Returns information about a connection to a map server object or to a map document.
Method LocalConnect Connects to map document data frame specified by the location of a map document and the name of a data frame.
Method ServerConnect Connects to map server object specified by the AGSServerObject name for a MapServer server object and the name of a data frame.
Read/write property TransparentColor The color that is transparent (100 %).

CoClasses that implement IMapServerLayer

CoClasses and Classes Description
MapServerLayer Provides programmatic access to a map server layer.
[Visual Basic 6.0]

When adding a map server layer to the application the layer and its sublayers are contracted in the TOC by default. This example shows how to expand the Map Server Layer and its sublayer before adding the Map Server Layer to the application. 


Expanding TOC for MapServerLayer