IRegisteredTaskCollection::get_Item method (taskschd.h)

Gets the specified registered task from the collection.

This property is read-only.

Syntax

HRESULT get_Item(
  VARIANT         index,
  IRegisteredTask **ppRegisteredTask
);

Parameters

index

ppRegisteredTask

Return value

None

Remarks

Collections are 1-based. That is, the index for the first item in the collection is 1.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header taskschd.h
Library Taskschd.lib
DLL Taskschd.dll

See also

IRegisteredTaskCollection

Task Scheduler