KillJob method of the MSISCSITARGET_ConcreteJob class

Terminates this job and any underlying processes immediately, and removes any associations that contain this job. This method is deprecated. Instead, use the RequestStateChange method to distinguish between an orderly shutdown and an immediate shutdown without cleanup.

This method is inherited from the CIM_Job class.

Syntax

uint32 KillJob(
  [in] boolean DeleteOnKill
);

Parameters

DeleteOnKill [in]

Indicates whether the job should be automatically deleted upon termination. This parameter takes precedence over the DeleteOnCompletion property.

Return value

Success (0)

Not Supported (1)

Unknown (2)

Timeout (3)

Failed (4)

Access Denied (5)

Not Found (6)

DMTF Reserved (7 32767)

Vendor Specific (32768 65535)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012 R2
Namespace
Root\CIMv2\Storage\iScsiTarget
MOF
SmIscsiTarget.mof
DLL
SmIScsiTargetProv.dll

See also

MSISCSITARGET_ConcreteJob