KillJob method of the CIM_Job class

Note

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

Shuts down a job.

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.

Success (0)

Not Supported (1)

Unknown (2)

Timeout (3)

Failed (4)

Access Denied (6)

Not Found (7)

DMTF Reserved (8 32767)

Vendor Specific (32768 65535)

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_Job