次の方法で共有


DeleteResourcePool method of the CIM_ResourcePoolConfigurationService class

Starts a job to delete a resource pool. The delete operation will fail and this method will return 6 (in use) if there are unfinished resource allocation when this method is called. If the deleted resource pool is a root resource pool, all of its host resources are returned back to the underlying system.

Syntax

uint32 DeleteResourcePool(
  [in]  CIM_ResourcePool REF Pool,
  [out] CIM_ConcreteJob  REF Job,
  [out] string               Error
);

Parameters

Pool [in]

A reference to the resource pool to delete.

Job [out]

A reference to the job for the operation. When the job is finished this parameter can be set to NULL.

Error [out]

Contains an error message, if relevent.

Return value

The possible return values are:

Job Completed with No Error (0)

Not Supported (1)

Unknown (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

In Use (6)

Incorrect ResourceType for the Pool (7)

DMTF Reserved (8 4095)

Method Parameters Checked - Job Started (4096)

Method Reserved (4097 32767)

Vendor Specific (32768 65535)

Requirements

Namespace
Root\virtualization
MOF
WindowsVirtualization.mof

See also

CIM_ResourcePoolConfigurationService