SMS_CollectionRuleQuery Server WMI Class
Applies To: System Center Configuration Manager 2007, System Center Configuration Manager 2007 R2, System Center Configuration Manager 2007 R3, System Center Configuration Manager 2007 SP1, System Center Configuration Manager 2007 SP2
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 |
---|---|
Validates the collection rule query. |
Properties
LimitToCollectionID
Data type: StringAccess type: Read/Write
Qualifiers: None
ID 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/Write
Qualifiers: None
WQL 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-only
Qualifiers: [read]
Auto-generated ID that is only useful when deleting a rule.
RuleName
Data type: StringAccess type: Read/Write
Qualifiers: None
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
For more information, see Configuration Manager Server Runtime Requirements.
Development Requirements
For more information, see Configuration Manager Server Development Requirements.