Parameters
- taskFile
- Full path to an .esriTasks file.
Return Value
A Task returning the unique identifier of the task file imported. Use this unique identifier as parameters to other API calls such as ExportTaskItemAsync.
Exception | Description |
---|---|
ArcGIS.Desktop.TaskAssistant.Exceptions.OpenTaskException | Error importing the task file. For example the taskFile is invalid or the Tasks pane is in Designer mode and editing another task item. |
System.InvalidOperationException | This must be called on the UI thread. |
Target Platforms: Windows 11, Windows 10