GeoData service GetDefaultWorkingVersion method

Gets and returns the default working version for all operations/methods.

GetDefaultWorkingVersion()

Return Value

A string representing the name of the default version.

Remarks

Returns the geodatabase version to be used by default. Only geodatabases that support versioning will return a value. If the geodatabase does not support versioning, an empty string is returned.

If the geodatabase is an ArcSDE geodatabase, this method returns the version that is being accessed by the service.

Examples

C#

GeodataService_GeodataServer geodataservice = new GeodataService_GeodataServer();

geodataservice.Url = "http://localhost:6080/arcgis/services/GeodataService/GeodataServer";

 

string defaultversionname = geodataservice.GetDefaultWorkingVersion();

VB.NET

Dim geodataservice As GeodataService_GeoDataServer = New GeodataService_GeoDataServer()

geodataservice.Url = "http://localhost:6080/arcgis/services/GeodataService/GeodataServer"

 

Dim defaultversionname As String = geodataservice.GetDefaultWorkingVersion()

Java

String defaultWorkingVersion = geoDataService.getDefaultWorkingVersion();

2/28/2020