共用方式為


類別SMS_ResourceMap中的 GetClassesWithData 方法

GetClassesWithData Configuration Manager 中,Windows Management Instrumentation (WMI) 類別方法會取得具有資源清查數據的類別名稱。

語法

SInt32 GetClassesWithData(
     UInt32 ResourceId,
     Boolean History,
     String ClassNames[]
);

參數

ResourceId 資料類型: UInt32

限定符:[in]

資源的標識碼。

History 資料類型: Boolean

限定符:[in]

TRUE 表示包含歷程記錄。

ClassNames 資料類型: String

限定符:[out]

具有指定資源清查的類別名稱。

傳回值

數據 SInt32 類型,為 0 表示成功或非零表示失敗。

如需處理傳回錯誤的相關信息,請參閱關於 Configuration Manager 錯誤

需求

運行時間需求

如需詳細資訊,請參閱 Configuration Manager 伺服器運行時間需求。

開發需求

如需詳細資訊,請參閱 Configuration Manager 伺服器開發需求。

另請參閱

SMS_ResourceMap伺服器 WMI 類別