Method CreateAsync
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.
Declaration
public static async Task<ServiceGeodatabase> CreateAsync(PortalItem portalItem)
Parameters
Type | Name | Description |
---|---|---|
PortalItem | portalItem | A feature service PortalItem. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServiceGeodatabase> | The task object representing the asynchronous create operation. The value of the task result is a loaded ServiceGeodatabase object. |
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 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |
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.
Declaration
public static async Task<ServiceGeodatabase> CreateAsync(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. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServiceGeodatabase> | The task object representing the asynchronous create operation. The value of the task result is a loaded ServiceGeodatabase object. |
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 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |
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.
Declaration
public static async Task<ServiceGeodatabase> CreateAsync(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. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServiceGeodatabase> | The task object representing the asynchronous create operation. The value of the task result is a loaded ServiceGeodatabase object. |
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 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |
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.
Declaration
public static async Task<ServiceGeodatabase> CreateAsync(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. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServiceGeodatabase> | The task object representing the asynchronous create operation. The value of the task result is a loaded ServiceGeodatabase object. |
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 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 - 100.15 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |
CreateAsync(Uri)
Creates a new ServiceGeodatabase connected to the default version in a feature service.
Declaration
public static async Task<ServiceGeodatabase> CreateAsync(Uri url)
Parameters
Type | Name | Description |
---|---|---|
System.Uri | url | The URL of the feature service or the portal item to connect to. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServiceGeodatabase> | The task object representing the asynchronous create operation. The value of the task result is a loaded ServiceGeodatabase object. |
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 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |
CreateAsync(Uri, String)
Creates a new ServiceGeodatabase connected to a specific version in a feature service.
Declaration
public static async Task<ServiceGeodatabase> CreateAsync(Uri url, string versionName)
Parameters
Type | Name | Description |
---|---|---|
System.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. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServiceGeodatabase> | The task object representing the asynchronous create operation. The value of the task result is a loaded ServiceGeodatabase object. |
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 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |
CreateAsync(Uri, String, FeatureServiceSessionType)
Creates a new ServiceGeodatabase connected to a specific version in a feature service.
Declaration
public static async Task<ServiceGeodatabase> CreateAsync(Uri url, string versionName, FeatureServiceSessionType sessionType)
Parameters
Type | Name | Description |
---|---|---|
System.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. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServiceGeodatabase> |
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 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |
CreateAsync(Uri, FeatureServiceSessionType)
Creates a new ServiceGeodatabase connected to the default version in a feature service.
Declaration
public static async Task<ServiceGeodatabase> CreateAsync(Uri url, FeatureServiceSessionType sessionType)
Parameters
Type | Name | Description |
---|---|---|
System.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. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ServiceGeodatabase> |
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 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |