Map service GetServiceConfigurationInfo method
Gets a set of name-value pairs that contain information on map service configuration restrictions.
GetServiceConfigurationInfo()
Return Value
A PropertySet containing read-only properties for map service restrictions.
Remarks
Use this method to get restrictions set by the publisher for a map service that are stored in a map service configuration file (.cfg).
Four properties are included in the PropertySet returned from this method:
Property name |
Description |
---|---|
MaximumRecordCount |
Maximum number of records returned when querying a map service. Restricts records returned from Find, Identify, QueryFeatureData, and QueryHyperlinks. If the number of records exceeds the maximum value, only the maximum number of records will be returned. |
MaximumBufferCount |
Maximum number of features per layer that can be buffered when generating a map using ExportMapImage. Buffer properties for features in a layer are defined using a LayerDescription (e.g. SelectionBufferDistance). |
MaximumImageWidth |
Maximum image width in pixels. Restricts images generated by ExportMapImage and ExportScaleBar. If a value greater than the maximum is specified, the maximum value will be used. |
MaximumImageHeight |
Maximum image height in pixels. Restricts images generated by ExportMapImage and ExportScaleBar. If a value greater than the maximum is specified, the maximum value will be used. |
SupportedImageFormatTypes | Type of image formats supported by a map service. |
UseStandardizedQueries | When True, a map service accepts only database agnostic StandardizedQueries passed in as a QueryFilter's WhereClause or as a DefinitionExpression. When False, the query must conform to the underlying database's syntax and must use only functions supported by that database. |
Examples
C#
MapService_MapServer mapservice = new MapService_MapServer();
mapservice.Url = "http://localhost:6080/arcgis/services/MapService/MapServer";
string mapname = mapservice.GetDefaultMapName();
PropertySet serviceproperties = mapservice.GetServiceConfigurationInfo();
PropertySetProperty[] propertyarray = serviceproperties.PropertyArray;
foreach (PropertySetProperty serviceprop in propertyarray)
{
string key = serviceprop.Key.ToString();
string value = serviceprop.Value.ToString();
}
VB.NET
Dim mapservice As MapService_MapServer = New MapService_MapServer()
mapservice.Url = "http://localhost:6080/arcgis/services/MapService/MapServer"
Dim mapname As String = mapservice.GetDefaultMapName()
Dim serviceproperties As PropertySet = mapservice.GetServiceConfigurationInfo()
Dim propertyarray() As PropertySetProperty = serviceproperties.PropertyArray
Dim serviceprop As PropertySetProperty
For Each serviceprop In propertyarray
Dim key As String = serviceprop.Key.ToString()
Dim value As String = serviceprop.Value.ToString()
Next
Java
String serviceURL = "http://localhost:6080/arcgis/services/MapService/MapServer";
MapServerBindingStub mapService = new MapServerBindingStub(serviceURL);
PropertySet serviceProperties = mapService.getServiceConfigurationInfo();
PropertySetProperty[] propertyArray = serviceProperties.getPropertyArray();
for (PropertySetProperty serviceProp : propertyArray)
{
String key = serviceProp.getKey();
System.out.println("Property Name: " + key);
String value = serviceProp.getValue().toString();
System.out.println("Property Value: " + value);
}