ESRI.ArcGIS.ADF.IMS | |
ServiceSpatialReference Property | |
See Also Example |
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapService Class : ServiceSpatialReference Property |
Visual Basic (Declaration) | |
---|---|
Public ReadOnly Property ServiceSpatialReference As SpatialReference |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public SpatialReference ServiceSpatialReference {get;} |
The following example retrieves the SpatialReference object from an existing
MapService object and prints its coordinate system ID or definition string.
C# | Copy Code |
---|---|
// Retrieve SpatialReference from previously created MapService |
Visual Basic | Copy Code |
---|---|
' Retrieve SpatialReference from previously created MapService |
May be null (Nothing) after initializing MapService if no coordinate system information has been added to the configuration file for the ArcIMS map service. Check that the object exists before accessing the spatial reference's properties.
This property, as with all properties of MapService, is read-only.