Show / Hide Table of Contents

Method GetResultAsync

GetResultAsync()

A convenience method that starts the job, waits for completion, and returns the result.

Declaration
public Task<T> GetResultAsync()
Returns
Type Description
System.Threading.Tasks.Task<T>

A task that represents the asynchronous get result operation. The value of the task result is an object of type T.

Remarks

The results that are returned depend on the type specified. For example:

  • A successful ExportVectorTilesJob returns an ExportVectorTilesResult.
  • A successful GeoprocessingJob returns a GeoprocessingResult.
  • A successful OfflineMapSyncJob returns OfflineMapSyncResult, which indicates whether any errors were incurred during the synchronization process (HasErrors). If so, you can examine the dictionary of LayerResults and TableResults to identify the source of the problem for each layer and table.
  • A successful SyncGeodatabaseJob returns an empty collection of SyncLayerResult; otherwise, if individual edits failed, then the result collection provides these errors grouped by each table using SyncLayerResult instances. In other words, only errors are reported. Feature edit results do not contain information about successful adds, deletes, or updates.
  • A successful UtilityNetworkValidationJob returns UtilityValidationResult.

If the job fails or is canceled, an exception is thrown instead of returning a result.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
Relevant samples
Analyze hotspots: Use a geoprocessing service and a set of features to identify statistically significant hot spots and cold spots.
Edit and sync features: Synchronize offline edits with a feature service.
In This Article
Back to top Copyright © 2022 Esri.