指定 WQL 查詢字串 (類 SQL),常用建構子:
public ObjectQuery(string query);
根據查詢檢索 WMI 物件集合,核心成員:
| 屬性 | 說明 |
|---|---|
| Options | 搜尋選項 |
| Query | WQL 查詢字串 |
| Scope | 搜尋範圍 (ManagementScope) |
Get() 方法:執行查詢並回傳 ManagementObjectCollection。
代表 WMI 實例集合 (含命名空間、範圍、查詢觀察器),無公開建構子,由 Searcher.Get() 產生。
三大類別配合 ManagementScope 與 ConnectionOptions 形成完整 WMI 查詢管線。