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 |
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 Basic | Copy 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
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