CimProductList.Item (read-only property)

Gets the product by name.
Syntax: CimProduct* = object.Item ( ProductID )
Parameters:
ProductID As String - Product name to be retrieved.
Description: DCimProductList.Item returns a CimProduct by name. If you want to enumerate all the products in the list without knowing the names use a For Next loop instead if Item.

Example:

Dim pSystem As CimSystem
Set pSystem = CreateObject("CimSystem")
Dim productsList as CimProductList
Set productsList = pSystem.InstalledProducts
Dim productItem As CimProduct
For Each productItem In productsList
  MsgBox productItem.Description
Next productItem




Example:

Dim pSystem As CimSystem
Set pSystem = CreateObject("CimSystem")
Dim productsList as CimProductList
Set productsList = pSystem.InstalledProducts
Dim productItem As CimProduct
Set productItem = productsList.Item("IC646THC000")
If Not productItem Is Nothing Then
  MsgBox productItem.Description
End If