In Configuration Manager, the InventoryDataItem class is a client Windows Management Instrumentation (WMI) class that defines an inventory collection query.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.

Class InventoryDataItem : SMS_InventoryAgent_Policy
{
	String AssocClass[];
	InventoryDataContext Context[];
	String DataItemID;
	String Filter;
	String InventoryActionID;
	String ItemClass;
	String Namespace;
	String PolicyID;
	String PolicyInstanceID;
	UInt32 PolicyPrecedence;
	String PolicyRuleID;
	String PolicySource;
	String PolicyVersion;
	String Properties;
	PropertyRule ReportRules[];
	UInt32 Timeout;
};

Methods

The InventoryDataItem class does not define any methods.

Properties

AssocClass


Data type: String ArrayAccess type: Read/WriteQualifiers: NoneReserved for future use.
Context


Data type: InventoryDataContext ArrayAccess type: Read/WriteQualifiers: NoneOptional context qualifier for the class query. For more information, see InventoryDataContext Client WMI Class.
DataItemID


Data type: StringAccess type: Read/WriteQualifiers: [realkey]Unique identifier for an InventoryDataItem Client WMI Class object.
Filter


Data type: StringAccess type: Read/WriteQualifiers: NoneClass query property filter, for example, NumberOfProcessors=1 AND DomainRole=1. The Inventory Agent uses this field to build the WQL WHERE clause for the class instance query.
InventoryActionID


Data type: StringAccess type: Read/WriteQualifiers: NoneID that matches the InventoryActionID value for an associated InventoryAction Client WMI Class object. The Inventory Agent uses this value to find the InventoryDataItem Client WMI Class class for a particular inventory action.
ItemClass


Data type: StringAccess type: Read/WriteQualifiers: [realkey]WMI instance class to query, for example, Win32_ComputerSystem.
Namespace


Data type: StringAccess type: Read/WriteQualifiers: [realkey]WMI namespace to query, for example, \\\\.\\root\\cimv2.
PolicyID


Data type: StringAccess type: Read/WriteQualifiers: [key]Unique ID of the policy.
PolicyInstanceID


Data type: StringAccess type: Read/WriteQualifiers: [key]Unique ID of the policy instance.
PolicyPrecedence


Data type: UInt32Access type: Read/WriteQualifiers: NonePrecedence for the policy.
PolicyRuleID


Data type: StringAccess type: Read/WriteQualifiers: [key]Unique ID of the rule used to create the policy.
PolicySource


Data type: StringAccess type: Read/WriteQualifiers: [key]Source of the policy.
PolicyVersion


Data type: StringAccess type: Read/WriteQualifiers: [key]Version of the policy.
Properties


Data type: StringAccess type: Read/WriteQualifiers: NoneClass properties to query, for example, Domain, Name, and UserName. The Inventory Agent uses this property to build the WQL SELECT clause for the class instance query.
ReportRules


Data type: PropertyRule ArrayAccess type: Read/WriteQualifiers: NoneReserved for future use.
Timeout


Data type: UInt32Access type: Read/WriteQualifiers: NoneMaximum time that the agent waits for the InventoryDataItem class query to complete before canceling the query. This property overrides DefaultTimeOut property in the InventoryAction Client WMI Class class.

Remarks

The Inventory Agent uses each instance of this class to build a WMI query for the referenced class; for example, SELECT Name FROM Win32_ComputerSystem WHERE DomainRole=1.

The Inventory Agent collects items returned by InventoryDataItem Client WMI Class queries and builds a report based on the results. Each InventoryDataItem object contains a reference to an InventoryAction Client WMI Class object. Multiple InventoryDataItem queries are used to build the combined report for an InventoryAction object.

Requirements

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.