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




Gets the Environment associated with the current MapService.

Syntax

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

Example

This example retrieves the Environment object from an existing MapService and prints some of its properties to a label control.
C#Copy Code
ESRI.ArcGIS.ADF.IMS.Administration.Environment envir = mapService.Environment;
lblEnvironment.Text = "Environment: country = " + envir.Country
   + ", language = " + envir.Language
   + ", tuple separator = " + envir.TupleSeparator
   + ", coordinate separator = " + envir.CoordinateSeparator
   + ", screen dpi = " + envir.Dpi.ToString() + "<br/>";
Visual BasicCopy Code
Dim envir As ESRI.ArcGIS.ADF.IMS.Administration.Environment
envir = mapService.Environment
lblEnvironment.Text = "Environment: country = " + envir.Country _
   + ", language = " + envir.Language _
   + ", tuple separator = " + envir.TupleSeparator _
   + ", coordinate separator = " + envir.CoordinateSeparator _
   + ", screen dpi = " + envir.Dpi.ToString() + "<br/>"

Remarks

The Environment object provides information about the map service's language, country setting, separators and screen DPI. It corresponds to the ENVIRONMENT tag in the ArcXML service information response.

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.