GeoData service GetWrappedWorkspaceType method
Gets the type of the geodatabase the geodata service operates on.
GetWrappedWorkspaceType()
Return Value
An esriWorkspaceType enumeration value.
Remarks
Three types of workspaces are defined in the enumeration:
- File: these are not geodatabases and will not be exposed via a geodata service.
- Local: consist of personal and file geodatabases.
- Remote: refer to workgroup or enterprise geodatabases.
In many cases, successfully using geodata service methods depends on the type of geodatabase the service is working with.
Examples
C#
GeodataService_GeodataServer geodataservice = new GeodataService_GeodataServer();
geodataservice.Url = "http://localhost:6080/arcgis/services/GeodataServiceLocal/GeodataServer";
esriWorkspaceType workspacetype = geodataservice.GetWrappedWorkspaceType();
VB.NET
Dim geodataservice As GeodataService_GeoDataServer = New GeodataService_GeoDataServer()
geodataservice.Url = "http://localhost:6080/arcgis/services/GeodataServiceLocal/GeodataServer"
Dim workspacetype As esriWorkspaceType = geodataservice.GetWrappedWorkspaceType()
Java
//Test GetWrappedWorkspaceType
EsriWorkspaceType workspaceType = geoDataService.getWrappedWorkspaceType();
10/23/2013