Windows Dev Center

ITaskFolder::DeleteTask method

Deletes a task from the folder.

Syntax


HRESULT DeleteTask(
  [in] BSTR Name,
  [in] LONG flags
);

Parameters

Name [in]

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.

flags [in]

Not supported.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

ITaskFolder
Task Scheduler
ITaskFolder

 

 

Community Additions

ADD
Show:
© 2015 Microsoft