Click or drag to resize
Task Scheduler Managed Class Library

TaskServiceGetTask Method

Gets the task with the specified path.

Namespace: Microsoft.Win32.TaskScheduler
Assembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.12.0
Syntax
C#
public Task GetTask(
	string taskPath
)
Request Example View Source

Parameters

taskPath  String
The task path.

Return Value

Task
The Task instance matching the taskPath, if found. If not found, this method returns null.
See Also