sessionType property

FeatureServiceSessionType sessionType

The type of read and edit sessions to use when working with the service.

The default value is FeatureServiceSessionType.transient.

If the feature service this ServiceGeodatabase references is not branch-versioned, only FeatureServiceSessionType.transient is supported.

If using FeatureServiceSessionType.persistent, it is important to call ServiceGeodatabase.close before destruction.

Cannot be set after the ServiceGeodatabase is loaded. When the ServiceGeodatabase is created by loading an ArcGISMap, use LoadSettings to control the session type.

Implementation

FeatureServiceSessionType get sessionType {
  final coreValue = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_ServiceGeodatabase_getSessionType(
      _handle,
      errorHandler,
    );
  });
  return FeatureServiceSessionType._fromCoreValue(
    coreValue,
  );
}
void sessionType=(FeatureServiceSessionType value)

Implementation

set sessionType(FeatureServiceSessionType value) {
  _withThrowingErrorHandler((errorHandler) {
    runtimecore.RT_ServiceGeodatabase_setSessionType(
      _handle,
      value.coreValue,
      errorHandler,
    );
  });
}