ArcGIS Pro 2.7 API Reference Guide
TaskFileVersionException Class
Members 

ArcGIS.Desktop.TaskAssistant Namespace : TaskFileVersionException Class
Represents an error exception when the ArcGIS Pro .esriTasks file has the incorrect version.
Syntax
Remarks
The TaskFileVersionException is thrown from the TaskAssistantModule.GetTaskItemInfoAsync or TaskProjectItem.GetTaskItemInfo methods. Use the Message property to determine the error in opening the task file.
Inheritance Hierarchy

System.Object
   System.Exception
      ArcGIS.Desktop.TaskAssistant.TaskException
         ArcGIS.Desktop.TaskAssistant.TaskFileVersionException

Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

TaskFileVersionException Members
ArcGIS.Desktop.TaskAssistant Namespace
GetTaskItemInfoAsync Method