SMS_CollectionRuleQuery Server WMI Class
Applies To: System Center 2012 Configuration Manager, System Center 2012 Configuration Manager SP1, System Center 2012 R2 Configuration Manager
The SMS_CollectionRuleQuery Windows Management Instrumentation (WMI) class is an SMS Provider server class, in System Center 2012 R2 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.
Syntax
Class SMS_CollectionRuleQuery : SMS_CollectionRule
{
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
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.