Method GetResultAsync
GetResultAsync()
A convenience method that starts the job, waits for completion, and returns the result.
Declaration
Task<object> GetResultAsync()
Returns
| Type | Description |
|---|---|
| Task<object> | A task that represents the asynchronous get result operation. |
Remarks
The results that are returned depend on the type of job. 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
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |