This document is archived and information here might be outdated.  Recommended version.

IMapServerInfo2 Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IM > IMapServerInfo2 Interface
ArcGIS Developer Help

IMapServerInfo2 Interface

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

Product Availability

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

When To Use

Use the IMapServerInfo interface to access read-only information about a map (data frame).


Name Description
Read-only property BackgroundColor The background color of the map (data frame).
Read-only property BackgroundSymbol Background symbol of the map (data frame).
Read-only property Bookmarks The published bookmarks for the map.
Read-only property CopyrightText Copyright information associated with the layer.
Read-only property DefaultMapDescription The default map settings.
Read-only property Description The description of the map (data frame). This property is set in the General tab of the Data Frame Properties dialog.
Read-only property Extent The current extent of the map (data frame).
Read-only property FullExtent The full extent of the map (data frame).
Read-only property MapLayerInfos A collection of Map Layer Info objects, each containing information about a layer in the map (data frame).
Read-only property MapUnits The units for the map (data frame).
Read-only property Name The name of the map (data frame).

Classes that implement IMapServerInfo2

Classes Description
MapServerInfo The Map Server Info coclass provides read-only information about a map.


IMapServerInfo provides access to members describing the default state of a MapServer object, such as the name of the map, the background color or the spatial extent of the map. This information cannot be changed without changing the state of the underlying fine-grained ArcObjects.

Map settings of the Server object can be permanently changed by accessing fine-grained ArcObjects. This is accomplished using IMapServerObjects2. This should be done with objects in a non-pooled environment.  Changing the state of pooled objects this way will lead to unexpected results.

Please note the difference between IMapServerInfo and IMapDescription2. IMapServerInfo provides read-only access to its members. IMapDescription2 provided read-write access to its members. Use IMapDescription2 to access and change map settings without changing the state of the fine-grained ArcObejcts.