類別SMS_Collection中的 GetNumResults 方法
在 GetNumResults
Configuration Manager中,Windows Management Instrumentation (WMI) 類別方法會取得集合中所有成員的計數,不包括子集合。
下列語法是從受控物件格式 (MOF) 程式碼中簡化,並定義 方法。
語法
SInt32 GetNumResults(
ref:SMS_Collection Collection,
UInt32 Result
);
參數
Collection
資料類型:ref:SMS_Collection
限定詞:[in]
集合的集合識別碼或物件路徑。 集合識別碼是伺服器 WMI 類別SMS_Collection屬性的值 CollectionID
。
Result
資料類型:UInt32
限定詞:[out]
集合成員的數目。
傳回值
資料 SInt32
類型,為 0 表示成功或非零表示失敗。
如需處理傳回錯誤的詳細資訊,請參閱關於Configuration Manager錯誤。
需求
執行時間需求
如需詳細資訊,請參閱Configuration Manager伺服器執行時間需求。
開發需求
如需詳細資訊,請參閱Configuration Manager伺服器開發需求。