Class ServiceGeodatabase
A container for a collection of ServiceFeatureTable connected to a feature service.
Inheritance
Implements
Namespace: Esri.ArcGISRuntime.Data
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ServiceGeodatabase : ILoadable
Remarks
A ServiceGeodatabase connects to a feature service as a whole, grouping together ServiceFeatureTable instances for related records queries, connecting to a version in a branch-versioned service, and managing edits for all tables.
Constructors
Name | Description |
---|---|
ServiceGeodatabase(PortalItem) | Initializes a new instance of the ServiceGeodatabase class from a feature service portal item, and connects to the default version in the feature service. |
ServiceGeodatabase(PortalItem, FeatureServiceSessionType) | Initializes a new instance of the ServiceGeodatabase class from a feature service portal item, and connects to the default version in the feature service. |
ServiceGeodatabase(PortalItem, String) | Initializes a new instance of the ServiceGeodatabase class from a feature service portal item, and connects to a specific version in the feature service. |
ServiceGeodatabase(PortalItem, String, FeatureServiceSessionType) | Initializes a new instance of the ServiceGeodatabase class from a feature service portal item, and connects to a specific version in the feature service. |
ServiceGeodatabase(Uri) | Initializes a new instance of the ServiceGeodatabase class connected to the default version in a feature service. |
ServiceGeodatabase(Uri, FeatureServiceSessionType) | Initializes a new instance of the ServiceGeodatabase class connected to the default version in a feature service. |
ServiceGeodatabase(Uri, String) | Initializes a new instance of the ServiceGeodatabase class connected to a specific version in a feature service. |
ServiceGeodatabase(Uri, String, FeatureServiceSessionType) | Initializes a new instance of the ServiceGeodatabase class connected to a specific version in a feature service. |
Properties
Name | Description |
---|---|
ConnectedTables | Gets the collection of feature tables managed by the ServiceGeodatabase. |
DefaultVersionName | Gets the name of the default version. |
LoadError | Gets the exception associated with a failed load. This property remains |
LoadStatus | Gets the current load status. |
PortalItem | Gets the PortalItem which the ServiceGeodatabase was created from. |
ServiceInfo | Gets the metadata of the service this ServiceGeodatabase is connected to. |
SessionType | Gets or sets the type of read and edit sessions to use when working with the service. |
SupportsBranchVersioning | Gets a value indicating whether the service supports branch versioning. |
Uri | Gets the URL of the feature service or the portal item to connect to. |
VersionName | Gets the name of the version the ServiceGeodatabase is currently connected to. |
Methods
Name | Description |
---|---|
ApplyEditsAsync() | Applies all local edits in all tables to the service. |
ApplyEditsAsync(CancellationToken) | Applies all local edits in all tables to the service. |
CancelLoad() | Cancel the previous load operation. |
CloseAsync() | Closes this service geodatabase. |
CreateAsync(PortalItem) | Creates a new instance of the ServiceGeodatabase class from a feature service portal item, and connects to the default version in the feature service. |
CreateAsync(PortalItem, FeatureServiceSessionType) | Creates a new instance of the ServiceGeodatabase class from a feature service portal item, and connects to the default version in the feature service. |
CreateAsync(PortalItem, String) | Creates a new instance of the ServiceGeodatabase class from a feature service portal item, and connects to a specific version in the feature service. |
CreateAsync(PortalItem, String, FeatureServiceSessionType) | Creates a new instance of the ServiceGeodatabase class from a feature service portal item, and connects to a specific version in the feature service. |
CreateAsync(Uri) | Creates a new ServiceGeodatabase connected to the default version in a feature service. |
CreateAsync(Uri, FeatureServiceSessionType) | Creates a new ServiceGeodatabase connected to the default version in a feature service. |
CreateAsync(Uri, String) | Creates a new ServiceGeodatabase connected to a specific version in a feature service. |
CreateAsync(Uri, String, FeatureServiceSessionType) | Creates a new ServiceGeodatabase connected to a specific version in a feature service. |
CreateVersionAsync(ServiceVersionParameters) | Asynchronously creates a new version in the service based on the default version. |
CreateVersionAsync(ServiceVersionParameters, CancellationToken) | Asynchronously creates a new version in the service based on the default version. |
GetTable(Int64) | Returns a service feature table object from the ID of a layer or table in the service. |
GetVersionsAsync() | Asynchronously retrieves a list of all versions on the service. |
GetVersionsAsync(CancellationToken) | Asynchronously retrieves a list of all versions on the service. |
HasLocalEdits() | Determines if any of the tables in the ServiceGeodatabase have unapplied edits. |
LoadAsync() | Asynchronously initiates loading of this ServiceGeodatabase. |
RetryLoadAsync() | Asynchronously retries loading of this ServiceGeodatabase. |
SwitchVersionAsync(String) | Asynchronously switches all connected feature tables to the new version. |
SwitchVersionAsync(String, CancellationToken) | Asynchronously switches all connected feature tables to the new version. |
UndoLocalEditsAsync() | Undos all of the local edits in all the tables. |
Events
Name | Description |
---|---|
Loaded | Occurs when the ServiceGeodatabase is loaded. |
LoadStatusChanged | Occurs when the ServiceGeodatabase LoadStatus is changed. |
Applies to
Target | Versions |
---|---|
.NET Standard 2.0 | 100.9 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.9 - 200.5 |
Xamarin.Android | 100.9 - 100.15 |
Xamarin.iOS | 100.9 - 100.15 |
UWP | 100.9 - 200.5 |