Export (0) Print
Expand All

ITriggerCollection::Item property

Gets the specified trigger from the collection.

This property is read-only.

Syntax


HRESULT get_Item(
  [in]   long index,
  [out]  ITrigger **ppTrigger
);

Property value

An ITrigger interface that represents the requested trigger.

Pass in a reference to a NULL ITrigger 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.

Remarks

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

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

ITriggerCollection
Task Scheduler

 

 

Community Additions

ADD
Show:
© 2014 Microsoft