Partager via


KillJob method of the CIM_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.

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 (6)

Not Found (7)

DMTF Reserved (8 32767)

Vendor Specific (32768 65535)

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2016
Namespace
Root\Microsoft\Windows\StorageReplica
MOF
WVRCimProv.Mof
DLL
WvrCimProv.dll

See also

CIM_ConcreteJob