TaskServiceGetTask Method
Gets the task with the specified path.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public Task GetTask(
string taskPath
)
- taskPath String
- The task path.
Task
The
Task instance matching the
taskPath, if found. If not found, this method returns
null.