TaskServiceFindTask Method
Finds a task given a name and standard wildcards.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public Task FindTask(
string name,
bool searchAllFolders = true
)
- name String
- The task name. This can include the wildcards * or ?.
- searchAllFolders Boolean (Optional)
- if set to true search all sub folders.
TaskA
Task if one matches
name, otherwise NULL.