Partager via


AddHardwareIDsToCollection method of the CIM_StorageHardwareIDManagementService class

Create MemberOfCollection instances between the specified Collection and the StorageHardwareIDs. This method allows the client to make a request of a specific Service instance to create the associations. When these capabilities are standardized in CIM/WBEM, this method can be deprecated and intrinsic methods used.

Syntax

uint32 AddHardwareIDsToCollection(
  [in] string                           HardwareIDs[],
  [in] CIM_SystemSpecificCollection REF Collection
);

Parameters

HardwareIDs [in]

Array of strings containing representations of references to StorageHardwareID instances that will become members of the collection.

Collection [in]

The Collection which groups the StorageHardwareIDs.

Return value

Success (0)

Not Supported (1)

Unspecified Error (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

DMTF Reserved (6 4095)

Invalid LogicalDevice instance (4096)

Implementation does not support device collections (4097)

Input devices cannot be used in this collection (4098)

Method Reserved (4099 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

CIM_StorageHardwareIDManagementService