CommandTaskStateHandler Delegate
Defines the delegate to implement when you subscribe to the IRemoteCommand.OnCommandTaskState event.
Namespace: Microsoft.Hpc.Scheduler
Assembly: Microsoft.Hpc.Scheduler (in Microsoft.Hpc.Scheduler.dll)
Namespace: Microsoft.Hpc.Scheduler
Assembly: Microsoft.Hpc.Scheduler (in Microsoft.Hpc.Scheduler.dll)
public delegate void CommandTaskStateHandler ( Object sender, CommandTaskStateEventArg arg )
/** @delegate */ public delegate void CommandTaskStateHandler ( Object sender, CommandTaskStateEventArg arg )
JScript does not support delegates.
Parameters
- sender
The Scheduler object.
- arg
A CommandTaskStateEventArg object that provides the state information for the command.
To get the job that contains the command, cast the sender object to an IScheduler interface. Then, cast the arg parameter to a TaskStateEventArg object and pass the TaskStateEventArg.JobId property to the IScheduler.OpenJob method to get the job. To get the task that contains the command, pass the TaskStateEventArg.TaskId property to the ISchedulerJob.OpenTask method.
Development Platforms
Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012Target Platforms
Windows XP, Windows Vista, Windows 7, Windows 8, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, with HPC Pack Client Utilities
Build Date:
Community Additions
ADD
Show: