Compartir a través de


DeleteByQuery Method in Class SMS_SoftwareProductCompliance

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

In Configuration Manager, the DeleteByQuery Windows Management Instrumentation (WMI) class method deletes records specified by a WQL SELECT statement that references the SMS_SoftwareProductComplianceclass.

UInt32 DeleteByQuery(
     String WQLSelect
);

Parameters

  • WQLSelect
    Data type: String

    Qualifiers: [in]

    WQL SELECT statement that selects records to be deleted and must reference the SMS_SoftwareProductCompliance class. This sample SELECT statement deletes all records that specify non-English products.

    SELECT * FROM SMS_SoftwareProductCompliance WHERE ResProdLangID NOT IN (1033, 0, 65535)
    

Return Values

A UInt32 data type indicating the number of objects deleted.

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

SMS_SoftwareProductCompliance Server WMI Class