ESRI.ArcGIS.ADF.IMS
Type Property
See Also  Example
ESRI.ArcGIS.ADF.IMS.Carto Namespace > MapService Class : Type Property




Gets the type of MapService.

Syntax

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

Example

This example prints to a label control a message about the type of service by checking the Type property of an existing MapService object.

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

C#Copy Code
if (mapService.Type == ESRI.ArcGIS.ADF.IMS.ServiceType.ArcMapServer) 

    lblServiceType.Text = "This is an ArcMap image service"; 

else 

    lblServiceType.Text = "This is a standard image service"; 

    
Visual BasicCopy Code
If mapService.Type = ESRI.ArcGIS.ADF.IMS.ServiceType.ArcMapServer Then

    lblServiceType.Text = "This is an ArcMap image service"

Else

    lblServiceType.Text = "This is a standard image service"

Remarks

Whether the map service is an image service or an ArcMap service.

Image services and ArcMap services have different capabilities. ArcMap services are created with an MXD project file authored in the ArcMap product, and have most of the cartographic capabilities of ArcMap, and may have multiple data frames and a layout. Image services have certain capabilities not available in ArcMap services. Some of these are:

  • Ability to modify rendering and symbols of feature layers.
  • Ability to add layers dynamically to the map for display and query.
  • Support for geocoding and extraction of data layers, if enabled in the map service when authored.

Consult the ArcIMS Help documentation for details on what can be done with each type of service.

See Also

© 2010 All Rights Reserved.