Retrieves the identifier of the job running on the core.
This property is read-only.
HRESULT get_JobId( [out] long *pJobId );
The identifier of the job running on the core; otherwise, zero.
If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.
This job identifier and the ParentJobId property of ISchedulerCore.TaskId will be the same value if a task is running. If the job is reserving resources (the job does not include tasks and the RunUntilCanceled property is VARIANT_TRUE), this identifier will contain the job identifier and the ParentJobId property will be zero.
For an example, see Getting a List of Nodes in the Cluster.
HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities