ITaskStateEventArg::TaskId property
Retrieves the identifier that uniquely identifies the task in a job.
This property is read-only.
Syntax
HRESULT get_TaskId(
[out] ITaskId **pTaskId
);
Property value
An ITaskId interface that uniquely identifies the task.
Error codes
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.
Remarks
Use the task identifier when calling the ISchedulerJob::OpenTask method to get an interface to the task.
Examples
For an example, see Implementing the Event Handlers for Job Events in C++.
Requirements
Product |
HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities |
Type library |
Microsoft.Hpc.Scheduler.tlb |