Share via


IJobStateEventArg::JobId property

Retrieves the identifier of the job whose state has changed.

This property is read-only.

Syntax

HRESULT get_JobId(
  [out] long *pJobId
);

Property value

The job identifier.

Error codes

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

Use the job identifier when calling the IScheduler::OpenJob method to get an interface to the job whose state has changed.

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

See also

IJobStateEventArg