Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0100.14 - 100.15
.NET 6.0100.14 - 100.15
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14 - 100.15

ServiceGeodatabase(PortalItem, Credential)

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, Credential credential)
Parameters
Type Name Description
PortalItem portalItem

A feature service PortalItem.

Credential credential

The optional security credential for the feature service. May be null.

Remarks

If the service is branch versioned, the ServiceGeodatabase will connect to the default version.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.12 - 100.13
.NET 6.0100.13
.NET 6.0 Windows100.13
.NET Framework100.12 - 100.13
.NET 5100.12
.NET Core 3.1100.12
Xamarin.Android100.12 - 100.13
Xamarin.iOS100.12 - 100.13
UWP100.12 - 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
TargetVersions
.NET Standard 2.0100.14 - 100.15
.NET 6.0100.14 - 100.15
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14 - 100.15

ServiceGeodatabase(PortalItem, FeatureServiceSessionType, Credential)

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, Credential credential)
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.

Credential credential

The optional security credential for the feature service. May be null.

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
TargetVersions
.NET Standard 2.0100.12 - 100.13
.NET 6.0100.13
.NET 6.0 Windows100.13
.NET Framework100.12 - 100.13
.NET 5100.12
.NET Core 3.1100.12
Xamarin.Android100.12 - 100.13
Xamarin.iOS100.12 - 100.13
UWP100.12 - 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.

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
TargetVersions
.NET Standard 2.0100.14 - 100.15
.NET 6.0100.14 - 100.15
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14 - 100.15

ServiceGeodatabase(PortalItem, String, Credential)

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, Credential credential)
Parameters
Type Name Description
PortalItem portalItem

A feature service PortalItem.

String versionName

The existing version to connect to when the ServiceGeodatabase loads.

Credential credential

The optional security credential for the feature service. May be null.

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
TargetVersions
.NET Standard 2.0100.12 - 100.13
.NET 6.0100.13
.NET 6.0 Windows100.13
.NET Framework100.12 - 100.13
.NET 5100.12
.NET Core 3.1100.12
Xamarin.Android100.12 - 100.13
Xamarin.iOS100.12 - 100.13
UWP100.12 - 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.

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
TargetVersions
.NET Standard 2.0100.14 - 100.15
.NET 6.0100.14 - 100.15
.NET 6.0 Windows100.14 - 100.15
.NET Framework100.14 - 100.15
Xamarin.Android100.14 - 100.15
Xamarin.iOS100.14 - 100.15
UWP100.14 - 100.15

ServiceGeodatabase(PortalItem, String, FeatureServiceSessionType, Credential)

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, Credential credential)
Parameters
Type Name Description
PortalItem portalItem

A feature service PortalItem.

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.

Credential credential

The optional security credential for the feature service. May be null.

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
TargetVersions
.NET Standard 2.0100.12 - 100.13
.NET 6.0100.13
.NET 6.0 Windows100.13
.NET Framework100.12 - 100.13
.NET 5100.12
.NET Core 3.1100.12
Xamarin.Android100.12 - 100.13
Xamarin.iOS100.12 - 100.13
UWP100.12 - 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
TargetVersions
UWP100.15

ServiceGeodatabase(Uri, Credential)

Initializes a new instance of the ServiceGeodatabase class connected to the default version in a feature service.

Declaration
public ServiceGeodatabase(Uri url, Credential credential)
Parameters
Type Name Description
Uri url

The URL of the feature service or the portal item to connect to.

Credential credential

The optional security credential for the feature service. May be null.

Remarks

If the service is branch versioned, the ServiceGeodatabase will connect to the default version.

Applies to

Platforms and versions
TargetVersions
UWP100.15

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.

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
TargetVersions
UWP100.15

ServiceGeodatabase(Uri, String, Credential)

Initializes a new instance of the ServiceGeodatabase class connected to a specific version in a feature service.

Declaration
public ServiceGeodatabase(Uri url, string versionName, Credential credential)
Parameters
Type Name Description
Uri url

The URL of the feature service or the portal item to connect to.

String versionName

The existing version to connect to when the ServiceGeodatabase loads.

Credential credential

The optional security credential for the feature service. May benull.

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
TargetVersions
UWP100.15

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.

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
TargetVersions
UWP100.15

ServiceGeodatabase(Uri, String, FeatureServiceSessionType, Credential)

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, Credential credential)
Parameters
Type Name Description
Uri url

The URL of the feature service or the portal item to connect to.

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.

Credential credential

The optional security credential for the feature service. May benull.

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
TargetVersions
UWP100.15

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
TargetVersions
UWP100.15

ServiceGeodatabase(Uri, FeatureServiceSessionType, Credential)

Initializes a new instance of the ServiceGeodatabase class connected to the default version in a feature service.

Declaration
public ServiceGeodatabase(Uri url, FeatureServiceSessionType sessionType, Credential credential)
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.

Credential credential

The optional security credential for the feature service. May benull.

Remarks

If the service is branch versioned, the ServiceGeodatabase will connect to the default version.

Applies to

Platforms and versions
TargetVersions
UWP100.15
In This Article
Back to top Copyright © 2022 Esri.