次の方法で共有


GetElementsBasedOnUsage method of the CIM_StorageConfigurationService class

Allows retrieving elements that meet the specified Usage. The criteria can be "available only", "in use only", or both.

Syntax

uint32 GetElementsBasedOnUsage(
  [in]  uint16                       ElementType,
  [in]  uint16                       Usage,
  [in]  uint16                       Criteria,
  [in]  CIM_StoragePool          REF ThePool,
  [out] CIM_ManagedSystemElement REF TheElements[]
);

Parameters

ElementType [in]

Enumeration indicating the type of elements to get.

Unknown (0)

StorageVolume (2)

StorageExtent (3)

StoragePool (4)

Logical Disk (5)

DMTF Reserved

6 32767

Vendor Specific

32768 65535

Usage [in]

The specific Usage to be retrieved.

Criteria [in]

Specifies whether to retrieve all elements, available elements only, or the elements that are in use.

Unknown (0)

All (2)

Available Only (3)

In Use Only (4)

DMTF Reserved

5 32767

Vendor Specific

32768 65535

ThePool [in]

Limit the search for the elements that satisfy the criteria to this StoragePool only. If null, all appropriate StoragePools will be considered.

TheElements [out]

Array of references to storage element instances retrieved.

Return value

Completed with No Error (0)

Not Supported (1)

Unknown (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

DMTF Reserved (6)

Vendor Specific (7 32767)

(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

CIM_StorageConfigurationService