IRegisteredTask::Definition property

Gets the definition of the task.

This property is read-only.

Syntax


HRESULT get_Definition(
  [out]  ITaskDefinition **ppDefinition
);

Property value

The definition of the task.

Pass in a reference to a NULL ITaskDefinition interface pointer. Referencing a non-NULL pointer can cause a memory leak because the pointer will be overwritten.

Error codes

NameMeaning
S_OK

The property value was successfully retrieved.

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

Task Scheduler
IRegisteredTask

 

 

Community Additions

ADD
Show:
© 2014 Microsoft