取得實例中的項目數目。
語法
MI_INLINE MI_Result MI_INLINE_CALL MI_Instance_GetElementCount(
[in] const MI_Instance *self,
[out] MI_Uint32 *count
);
參數
[in] self
將傳回其專案計數的實例。
[out] count
傳回 實例中的項目數目。
傳回值
指定函式傳回碼的 MI_Result 列舉值。 這可以是下列其中一個程序代碼。
規格需求
| 需求 | 值 |
|---|---|
| 最低支援的用戶端 | Windows 8 |
| 最低支援的伺服器 | Windows Server 2012 |
| 目標平台 | Windows |
| 標頭 | mi.h |
| 可轉散發套件 | Windows Management Framework Windows Server 2008 R2 SP1、Windows 7 SP1 和 Windows Server 2008 SP2 上的 3.0 |