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

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

IMapServerInfo.DefaultMapDescription Property

The default map settings.

[Visual Basic .NET]
Public ReadOnly Property DefaultMapDescription As IMapDescription
public IMapDescription DefaultMapDescription {get;}
HRESULT get_DefaultMapDescription(
  IMapDescription** mapDesc
mapDesc [out, retval]

mapDesc is a parameter of type IMapDescription**

Product Availability

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


The DefaultMapDescription refers to map settings set in the original map document. Changes to map settings using IMapDescription are temporary and do not affect the default map description returned by DefaultMapDescription.

The default settings for a MapServer object can be changed in two ways. First, you can make changes to the original map document and reinitialize the MapServer object. The other way to change the DefaultMapDescription is to use IMapServerObjects to access the fine-grained ArcObjects that the map settings are based, make the desired changes, and use the RefreshServerObjects method to overwite the old DefaultMapDescription with a new one. This should be done with objects in a non-pooled environment.  Changing the state of pooled objects this way will lead to unexpected results.

See Also

IMapServerInfo Interface