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


IMapServerInfo.MapUnits Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

IMapServerInfo.MapUnits Property

The units for the map (data frame).

[Visual Basic .NET]
Public ReadOnly Property MapUnits As esriUnits
[C#]
public esriUnits MapUnits {get;}
[C++]
HRESULT get_MapUnits(
  esriUnits* Units
);
[C++]

Parameters Units [out, retval]
Units is a parameter of type esriUnits

Product Availability

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

Remarks

The map units are set in the map document itself and cannot be changed using MapServer. The map's original spatial reference determines the units. Changing the SpatialReference property of IMapDescription will not change the value of the MapUnits property on IMapServerInfo.

See Also

IMapServerInfo Interface