IProviderProperties::GetCount 方法 (functiondiscoveryprovider.h)

[函式探索可用於需求一節中指定的作業系統。 後續版本可能會變更或無法使用。]

取得屬性存放區中的屬性數目。

語法

HRESULT GetCount(
  [in]  IFunctionInstance *pIFunctionInstance,
  [in]  INT_PTR           iProviderInstanceContext,
  [out] DWORD             *pdwCount
);

參數

[in] pIFunctionInstance

IFunctionInstance 介面指標。

[in] iProviderInstanceContext

與特定函式實例相關聯的內容。

[out] pdwCount

屬性存放區中的屬性數目。

傳回值

可能的傳回值包括但不限於下列各項。

傳回碼 描述
S_OK
已成功完成命令。
E_INVALIDARG
其中一個參數包含無效的自變數。
E_POINTER
pdwCount 參數為 NULL

規格需求

需求
最低支援的用戶端 Windows Vista [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2008 [僅限傳統型應用程式]
目標平台 Windows
標頭 functiondiscoveryprovider.h

另請參閱

IProviderProperties