IRunningTaskCollection::get_Item method (taskschd.h)
Gets the specified task from the collection.
This property is read-only.
Syntax
HRESULT get_Item(
VARIANT index,
IRunningTask **ppRunningTask
);
Parameters
index
ppRunningTask
Return value
None
Remarks
IRunningTaskCollection::get_Item returns E_INVALIDARG and E_TYPE_MISMATCH instead of E_INVALID_VARIANT when an invalid argument is specified.
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 |