 | TaskFolderDeleteTask Method |
Deletes a task from the folder.
Namespace:
Microsoft.Win32.TaskScheduler
Assembly:
Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.10.1
Syntaxpublic void DeleteTask(
string name,
bool exceptionOnNotExists = true
)
Public Sub DeleteTask (
name As String,
Optional exceptionOnNotExists As Boolean = true
)
public:
void DeleteTask(
String^ name,
bool exceptionOnNotExists = true
)
Request Example
View SourceParameters
- name
- Type: SystemString
The name of the task that is specified when the task was registered. The '.' character cannot be used to specify the current task folder and the '..'
characters cannot be used to specify the parent task folder in the path.
- exceptionOnNotExists (Optional)
- Type: SystemBoolean
Set this value to false to avoid having an exception called if the task does not exist.
See Also