Gets the type of MapService.
Syntax
Visual Basic (Declaration) | |
---|
Public ReadOnly Property Type As ServiceType |
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 Basic | Copy 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
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