ArcObjects Library Reference (Carto)  

IMapServerInfo.DefaultMapDescription Property

The default map settings.

[Visual Basic .NET]
Public ReadOnly Property DefaultMapDescription As IMapDescription
[C#]
public IMapDescription DefaultMapDescription {get;}
[C++]
HRESULT get_DefaultMapDescription(
  IMapDescription** mapDesc
);
[C++]

Parameters

mapDesc [out, retval]

  mapDesc is a parameter of type IMapDescription

Product Availability

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

Remarks

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