다음을 통해 공유


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

ValidateQuery Method in Class SMS_CollectionRuleQuery

Validates the collection rule query.

Properties

  • LimitToCollectionID
    Data type: String

    Access 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: String

    Access 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: UInt32

    Access type: Read-only

    Qualifiers: [read]

    Auto-generated ID that is only useful when deleting a rule.

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.

See Also

Concepts

Software Distribution Server WMI Classes