ServiceGeodatabase

constructor(portalItem: PortalItem, versionName: String = "", sessionType: FeatureServiceSessionType = FeatureServiceSessionType.Transient)

Creates a new ServiceGeodatabase from a feature service portal item, and connects to a specific version in the feature service. If a version with the name does not exist, or the service is not branch versioned, the ServiceGeodatabase will fail to load.

If using FeatureServiceSessionType.Persistent and the service is not branch versioned, the ServiceGeodatabase will fail to load.

If using FeatureServiceSessionType.Persistent, it is important to call ServiceGeodatabase.close() before destruction.

Since

200.1.0

Parameters

portalItem

the item representing the service

versionName

the version of the service

sessionType

the sessionType to use


constructor(url: String, versionName: String = "", sessionType: FeatureServiceSessionType = FeatureServiceSessionType.Transient)

Creates a new ServiceGeodatabase connected to a specific version in a feature service. If a version with the name does not exist, or the service is not branch versioned, the ServiceGeodatabase will fail to load.

If using FeatureServiceSessionType.Persistent and the service is not branch versioned, the ServiceGeodatabase will fail to load.

If using FeatureServiceSessionType.Persistent, it is important to call ServiceGeodatabase.close() before destruction.

Since

200.1.0

Parameters

url

the URL of the service

versionName

the version of the service

sessionType

the sessionType to use