Partager via


CreateHardwareIDCollection method of the MSISCSITARGET_StorageHardwareIDManagementService class

Creates a new instance of CIM_SystemSpecificCollection and associates a group of MSISCSITARGET_StorageHardwareID instances to it by using CIM_MemberOfCollection associations. A CIM_HostedCollection instance is created to associate the new collection with the parent system.

This method is inherited from the CIM_StorageHardwareIDManagementService class.

Syntax

uint32 CreateHardwareIDCollection(
  [in]  string                           ElementName,
  [in]  string                           HardwareIDs[],
  [out] CIM_SystemSpecificCollection Ref Collection
);

Parameters

ElementName [in]

Specifies the ElementName property of the new collection.

HardwareIDs [in]

Specifies string representations of the MSISCSITARGET_StorageHardwareID instances to include in the new collection.

Collection [out]

On return, contains the new CIM_SystemSpecificCollection instance.

Return value

Success (0)

Not Supported (1)

Unspecified Error (2)

Timeout (3)

Failed (4)

Invalid Parameter (5)

DMTF Reserved (6 0x0FFF)

Invalid HardwareID instance (0x1000)

Implementation does not support hardware ID collections (0x1001)

Input hardware IDs cannot be used in same collection (0x1002)

Method Reserved (0x1003 0x7FFF)

Vendor Specific (0x8000 0xFFFF)

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_StorageHardwareIDManagementService