SchedulerGetByIndex Method (MPlaylistClass)
index of task
task start time
command name
MItem of task object
Gets the task by its index.
Syntax
Public Overridable Sub SchedulerGetByIndex( _
   ByVal _nIndex As Integer, _
   ByRef _pTime As M_DATETIME, _
   ByRef _pbsCommand As String, _
   ByRef _ppTask As MItem _
) 
public virtual void SchedulerGetByIndex( 
   int _nIndex,
   out M_DATETIME _pTime,
   out string _pbsCommand,
   out MItem _ppTask
)
public procedure SchedulerGetByIndex( 
    _nIndex: Integer;
   Out  _pTime: M_DATETIME;
   Out  _pbsCommand: String;
   Out  _ppTask: MItem
); virtual; 
public: virtual 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

MPlaylistClass Class
MPlaylistClass Members