ESRI.ArcGIS.ADF.IMS
Units Property
See Also  Example Send Feedback
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapService Class : Units Property




Gets the MapUnits of the MapService.

Syntax

Visual Basic (Declaration) 
Public ReadOnly Property Units As MapUnits
Visual Basic (Usage)Copy Code
Dim instance As MapService
Dim value As MapUnits
 
value = instance.Units
C# 
public MapUnits Units {get;}

Example

This example prints the map units to a label control. It assumes a previously created MapService object.
C#Copy Code
// Using a previously created MapService object
Label1.Text = "Map units of the service is: " + mapService.Units.ToString();
Visual BasicCopy Code
' Using a previously created MapService object
Label1.Text = "Map units of the service is: " + mapService.Units.ToString()

Remarks

Map units for map services can be Degrees, Feet or Meters. Coordinates for maps need to be interpreted in terms of the map units and coordinate system. Consult ArcIMS Help and sources on map coordinate systems for further information on using map units with coordinates.

This property, as with all properties of MapService, is read-only.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.