KillJob method of the CIM_ConcreteJob class

Shuts down a job.

Note

This method is deprecated. Instead we recommend that you use the RequestStateChange method.

This method is inherited from the CIM_Job class.

Syntax

uint32 KillJob(
  [in] boolean DeleteOnKill
);

Parameters

DeleteOnKill [in]

True if the job should be automatically deleted upon termination; otherwise, false.

Note

This parameter takes precedence of the DeleteOnCompletion property of the CIM_Job class.

Return value

Returns 0 on success, otherwise returns a WMI error code.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\Microsoft\IPAM
MOF
IPAMServerPSProvider.mof
DLL
IPAMServerPSProvider.dll

See also

CIM_ConcreteJob