Click or drag to resize
Task Scheduler Managed Class Library

TaskCollectionExists Method

Determines whether the specified task exists.

Namespace:  Microsoft.Win32.TaskScheduler
Assembly:  Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntax
public bool Exists(
	string taskName
)
Request Example View Source

Parameters

taskName
Type: SystemString
The name of the task.

Return Value

Type: Boolean
true if task exists; otherwise, false.
See Also