TaskStateHandler Delegate

Defines the delegate to implement when you subscribe to the ISchedulerJob.OnTaskState event.


Namespace: Microsoft.Hpc.Scheduler
Assembly: Microsoft.Hpc.Scheduler (in Microsoft.Hpc.Scheduler.dll)

'Usage
Dim instance As New TaskStateHandler(AddressOf HandlerMethod)

public delegate void TaskStateHandler (
	Object sender,
	TaskStateEventArg arg
)
/** @delegate */
public delegate void TaskStateHandler (
	Object sender, 
	TaskStateEventArg arg
)
JScript does not support delegates.

Parameters

sender

A scheduler object. Cast the object to an IScheduler interface.

arg

An TaskStateEventArg object that provides information related to the state of the task.

To get the job, cast the sender object to an IScheduler interface. Then, pass the TaskStateEventArg.JobId property to the IScheduler.OpenJob method. To get the task, 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 2012

Target 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:

2013-04-22

Community Additions

ADD
Show: