Collection Rule Query

This is a subclass of SMS_CollectionRule. It represents a WQL query that returns resources to include in the collection. This class cannot be directly queried from the Query Builder interface and is not available to Crystal Reports. It is available only through programming.

Table B.8 Collection Rule Query (SMS_CollectionRuleQuery)

PropertyData typeExampleNotes
LimitToCollectionIDstring"SMS00001"The CollectionID of the target collection.
QueryExpressionstring"select * from sms_r_system"A WQL query that returns resources that will then belong to the collection.
QueryIDuint321An autogenerated key. This property is only useful when you are deleting a rule.
RuleNamestring"All Systems"Indicates the name of the collection rule.