Image service GetVersion method
Gets the image service version number.
GetVersion()
Return Value
A decimal value.
Remarks
The version is a float-point value. For example, "10.8" is for ArcGIS Server version 10.8.
Examples
C#
GeodataService_GeodataServer geodataservice = new GeodataService_GeodataServer();
geodataservice.Url = "http://localhost:6080/arcgis/services/GeodataService/GeodataServer";
try
{
GPVersionInfo[] gpversioninfos = geodataservice.GetVersions();
foreach (GPVersionInfo gpvi in gpversioninfos)
{
string versionname = gpvi.VersionName;
esriVersionAccess access = gpvi.Access;
}
}
// If not an ArcSDE geodatabase, "Error processing server request" will be returned.
catch (System.Web.Services.Protocols.SoapException soapex)
{
string message = soapex.Message;
}
catch (Exception ex) { }
finally
{
geodataservice.Dispose();
}
Java
GPVersionInfo[] gpVersionInfoss = geoDataService.getVersions();
2/28/2020