Constructor ServiceGeodatabase
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.
Declaration
public ServiceGeodatabase(PortalItem portalItem)
Parameters
Type | Name | Description |
---|---|---|
PortalItem | portalItem | A feature service PortalItem. |
Remarks
If the service is branch versioned, the ServiceGeodatabase will connect to the default version.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 100.15 |
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.
Declaration
public ServiceGeodatabase(PortalItem portalItem, FeatureServiceSessionType sessionType)
Parameters
Type | Name | Description |
---|---|---|
PortalItem | portalItem | A feature service PortalItem. |
FeatureServiceSessionType | sessionType | The type of read and edit sessions to use when working with the service. |
Remarks
If the service is branch versioned, the ServiceGeodatabase will connect to the default version. If using Persistent, it is important to call CloseAsync() before destruction.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 100.15 |
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.
Declaration
public ServiceGeodatabase(PortalItem portalItem, string versionName)
Parameters
Type | Name | Description |
---|---|---|
PortalItem | portalItem | A feature service PortalItem. |
System.String | versionName | The existing version to connect to when the ServiceGeodatabase loads. |
Remarks
If a version with the name does not exist, or the service is not branch versioned, the ServiceGeodatabase will fail to load.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 100.15 |
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.
Declaration
public ServiceGeodatabase(PortalItem portalItem, string versionName, FeatureServiceSessionType sessionType)
Parameters
Type | Name | Description |
---|---|---|
PortalItem | portalItem | A feature service PortalItem. |
System.String | versionName | The existing version to connect to when the ServiceGeodatabase loads. |
FeatureServiceSessionType | sessionType | The type of read and edit sessions to use when working with the service. |
Remarks
If a version with the name does not exist, or the service is not branch versioned, the ServiceGeodatabase will fail to load. If using Persistent, it is important to call CloseAsync() before destruction.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 100.15 |
ServiceGeodatabase(Uri)
Initializes a new instance of the ServiceGeodatabase class connected to the default version in a feature service.
Declaration
public ServiceGeodatabase(Uri url)
Parameters
Type | Name | Description |
---|---|---|
Uri | url | The URL of the feature service or the portal item to connect to. |
Remarks
If the service is branch versioned, the ServiceGeodatabase will connect to the default version.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 |
ServiceGeodatabase(Uri, String)
Initializes a new instance of the ServiceGeodatabase class connected to a specific version in a feature service.
Declaration
public ServiceGeodatabase(Uri url, string versionName)
Parameters
Type | Name | Description |
---|---|---|
Uri | url | The URL of the feature service or the portal item to connect to. |
System.String | versionName | The existing version to connect to when the ServiceGeodatabase loads. |
Remarks
If a version with the name does not exist, or the service is not branch versioned, the ServiceGeodatabase will fail to load
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 |
ServiceGeodatabase(Uri, String, FeatureServiceSessionType)
Initializes a new instance of the ServiceGeodatabase class connected to a specific version in a feature service.
Declaration
public ServiceGeodatabase(Uri url, string versionName, FeatureServiceSessionType sessionType)
Parameters
Type | Name | Description |
---|---|---|
Uri | url | The URL of the feature service or the portal item to connect to. |
System.String | versionName | The existing version to connect to when the ServiceGeodatabase loads. |
FeatureServiceSessionType | sessionType | The type of read and edit sessions to use when working with the service. |
Remarks
If a version with the name does not exist, or the service is not branch versioned, the ServiceGeodatabase will fail to load.
If using Persistent, it is important to call CloseAsync() before destruction.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 |
ServiceGeodatabase(Uri, FeatureServiceSessionType)
Initializes a new instance of the ServiceGeodatabase class connected to the default version in a feature service.
Declaration
public ServiceGeodatabase(Uri url, FeatureServiceSessionType sessionType)
Parameters
Type | Name | Description |
---|---|---|
Uri | url | The URL of the feature service or the portal item to connect to. |
FeatureServiceSessionType | sessionType | The type of read and edit sessions to use when working with the service. |
Remarks
If the service is branch versioned, the ServiceGeodatabase will connect to the default version.
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 100.15 |
.NET 6.0 | 100.14 - 100.15 |
.NET 6.0 Windows | 100.14 - 100.15 |
.NET Framework | 100.14 - 100.15 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 |