IUpdate::get_Categories 方法 (wuapi.h)

取得介面,其中包含更新所屬類別的集合。

這個屬性是唯讀的。

語法

HRESULT get_Categories(
  ICategoryCollection **retval
);

參數

retval

傳回值

備註

如果使用IUpdateSession::CreateUpdateSearcher方法建立IUpdateSearcher介面,則此屬性傳回的資訊適用于用來建立IUpdateSearcher之會話之UserLocale屬性所指定的語言。

如果IUpdateSession2UserLocale屬性未指定語言喜好設定,或者如果未使用IUpdateSession::CreateUpdateSearcher建立IUpdateSearcher介面,則此屬性傳回的資訊適用于使用者的預設使用者介面 (UI) 語言。 如果使用者的預設 UI 語言無法使用,Windows Update Agent (WUA) 會使用電腦的預設 UI 語言。 如果電腦的預設語言無法使用,WUA 會使用更新提供者建議的語言。

因為 IUpdate 的Categories屬性和IUpdateHistoryEntry2Categories屬性,所以 ICategory介面當地語系化屬性所使用的資訊取決於擁有ICategory介面的 WUA 物件。 如果ICategory介面是從IUpdateCategories屬性傳回,它會遵循IUpdate的當地語系化規則。 如果ICategory介面是從IUpdateHistoryEntry2Categories屬性傳回,它會遵循IUpdateHistoryEntry2的當地語系化規則。

規格需求

   
最低支援的用戶端 Windows XP、Windows 2000 Professional 與 SP3 [僅限傳統型應用程式]
最低支援的伺服器 Windows Server 2003、Windows 2000 Server 與 SP3 [僅限桌面應用程式]
目標平台 Windows
標頭 wuapi.h
程式庫 Wuguid.lib
Dll Wuapi.dll

另請參閱

IUpdate