The SMS_CollectionRuleQuery Windows Management Instrumentation (WMI) class is an SMS Provider server class, in Configuration Manager, that represents a member of a collection based on the results of a query.

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

Class SMS_CollectionRuleQuery : SMS_CollectionRule
{
	String LimitToCollectionID;
	String QueryExpression;
	UInt32 QueryID;
	String RuleName;
};

Methods

The following table lists the methods in the SMS_CollectionRuleQuery class.

Method Description

ValidateQuery Method in Class SMS_CollectionRuleQuery

Validates the collection rule query.

Properties

LimitToCollectionID


Data type: StringAccess type: Read/WriteQualifiers: NoneID of the collection to which to limit the query results. Members of the collection are limited to the resources that the query retrieves and that are also members of the collection specified in LimitToCollectionID.
QueryExpression


Data type: StringAccess type: Read/WriteQualifiers: NoneWQL SELECT statement having results that are used to populate the collection. The statement must specify a resource class name. The default value is "".Your application can use the LimitToCollectionID property to further limit the results. Note that the SMS Provider might alter the text of the query to make it more amenable to collection evaluation.
QueryID


Data type: UInt32Access type: Read-onlyQualifiers: [read]Auto-generated ID that is only useful when deleting a rule.
RuleName


Data type: StringAccess type: Read/WriteQualifiers: NoneSee SMS_CollectionRule Server WMI Class.

Remarks

Class qualifiers for this class include:

  • Embedded

For more information about both the class qualifiers and the property qualifiers included in the Properties section, see Configuration Manager Class and Property Qualifiers.

Requirements

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.