SchedulerGetByIndex Method (IMScheduler)
index of task
task start time
command name
MItem of task object
Gets the task by its index.
Syntax
Sub SchedulerGetByIndex( _
   ByVal _nIndex As Integer, _
   ByRef _pTime As M_DATETIME, _
   ByRef _pbsCommand As String, _
   ByRef _ppTask As MItem _
) 
void SchedulerGetByIndex( 
   int _nIndex,
   out M_DATETIME _pTime,
   out string _pbsCommand,
   out MItem _ppTask
)
procedure SchedulerGetByIndex( 
    _nIndex: Integer;
   Out  _pTime: M_DATETIME;
   Out  _pbsCommand: String;
   Out  _ppTask: MItem
); 
void SchedulerGetByIndex( 
   int _nIndex,
   [PARAMFLAG::Out] M_DATETIME _pTime,
   [PARAMFLAG::Out] BSTR* _pbsCommand,
   [PARAMFLAG::Out] MItem* _ppTask
) 

Parameters

_nIndex
index of task
_pTime
task start time
_pbsCommand
command name
_ppTask
MItem of task object
Example
Dim myTime As M_DATETIME
Dim myCommand As String
Dim myTask As MItem
myPlaylist.SchedulerGetByIndex(1, myTime, myCommand, myTask)
M_DATETIME myTime;
string myCommand;
MItem myTask;
myPlaylist.SchedulerGetByIndex(1, out myTime, out myCommand, out myTask); 
var
myPlaylist: MPlaylist;
myTime: M_DATETIME;
myTask: MItem;
myCommand: string;
myScheduler: IMScheduler;
begin
myPlaylist:= CreateComObject(CLASS_MPlaylist) as MPlaylist; 
pItem.ItemTimesGet(mTimeStart, mTimeStop, eStartType);
myScheduler := myPlaylist as IMScheduler;
myScheduler.SchedulerGetByIndex(1, myTime, myCommand, myTask);
end;
See Also

Reference

IMScheduler Interface
IMScheduler Members