 | TaskServiceGetTask Method |
Gets the task with the specified path.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic Task GetTask(
string taskPath
)
Public Function GetTask (
taskPath As String
) As Task
public:
Task^ GetTask(
String^ taskPath
)
Request Example
View SourceParameters
- taskPath
- Type: SystemString
The task path.
Return Value
Type:
Task
The
Task instance matching the
taskPath, if found. If not found, this method returns
null.
See Also