Show / Hide Table of Contents

Class GenerateGeodatabaseJob

A job that requests a feature service to generate a geodatabase file to be downloaded for offline use.

Inheritance
System.Object
Job<Geodatabase>
GenerateGeodatabaseJob
Job<Geodatabase>.Messages
Job<Geodatabase>.Error
Job<Geodatabase>.GetResultAsync()
Job<Geodatabase>.ServerJobId
Job<Geodatabase>.Status
Job<Geodatabase>.Progress
Job<Geodatabase>.CancelAsync()
Job<Geodatabase>.Pause()
Job<Geodatabase>.Start()
Job<Geodatabase>.ToJson()
Job<Geodatabase>.CheckStatusAsync()
Job<Geodatabase>.ProgressChanged
Job<Geodatabase>.MessageAdded
Job<Geodatabase>.StatusChanged
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Tasks.Offline
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class GenerateGeodatabaseJob : Job<Geodatabase>
Remarks

To make a GenerateGeodatabaseJob, use the GeodatabaseSyncTask as follows:

  • Construct and load the GeodatabaseSyncTask with a URL to a sync-enabled ArcGIS feature service.
  • Create a Geometry to define the area of interest that you wish to take offline.
  • Obtain the default GenerateGeodatabaseParameters for the area of interest by calling CreateDefaultGenerateGeodatabaseParametersAsync(Geometry).
  • Modify the GenerateGeodatabaseParameters as required.
  • Use the GenerateGeodatabaseParameters to create a GenerateGeodatabaseJob by calling GenerateGeodatabase(GenerateGeodatabaseParameters, String). You must specify a path where the mobile geodatabase (.geodatabase file) is downloaded to.

Start the GenerateGeodatabaseJob and monitor progress. On completion, obtain the Geodatabase from the GetResultAsync().

Methods

Name Description
FromJson(String)

Creates a job from JSON.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

Relevant samples

Edit and sync features: Synchronize offline edits with a feature service.
Generate geodatabase: Generate a local geodatabase from an online feature service.
Geodatabase transactions: Use transactions to manage how changes are committed to a geodatabase.
In This Article
Back to top Copyright © 2022 Esri.