This class represents a Query object as you would encounter it in the Queries item of the SMS Administrator console.
Table B.49 Query (SMS_Query)
| Property | Data type | Example | Notes |
|---|---|---|---|
| Comments | string | "Any comment." | A plain text string that contains any comments for the query. |
| Expression | string | Appears as a lengthy string. | The WQL text for the query. |
| LimitToCollectionID | string | "SMS00001" | The CollectionID of the collection that the query results will be limited to. |
| Name | string | "All Windows 95 Systems" | A plain text string that contains the name of the query. |
| QueryID | string | "SMS005" | Key. Identifies this query. |
| TargetClassName | string | "sms_r_system" | Indicates the type of object that will be located by the query. |