Share via


IUpdateHistoryEntry2::Categories property

Gets a collection of the update categories to which an update belongs.

This property is read-only.

Syntax

HRESULT get_Categories(
  [out] ICategoryCollection **retval
);

Property value

An ICategoryCollection interface that contains a collection of update categories.

If this information is unavailable, this parameter contains an empty collection.

Error codes

Returns S_OK if successful. Otherwise, returns a COM or Windows error code.

Remarks

The IUpdateHistoryEntry2 interface may require you to update Windows Update Agent (WUA). For more information, see Updating Windows Update Agent.

The information that this property returns is for the default user interface (UI) language of the user. If the default UI language of the user is unavailable, WUA uses the default UI language of the computer. If the default language of the computer is unavailable, WUA uses the language that the provider of the update recommends.

Because there is a Categories property of the IUpdate interface and a Categories property of the IUpdateHistoryEntry2 interface, the information that is used by the localized properties of the ICategory interface depends on the WUA object that owns the ICategory interface. If the ICategory interface is returned from the Categories property of IUpdate, it follows the localization rules of IUpdate. If the ICategory interface is returned from the Categories property of IUpdateHistoryEntry2, it follows the localization rules of IUpdateHistoryEntry2.

Requirements

Minimum supported client

Windows XP, Windows 2000 Professional with SP3 [desktop apps only]

Minimum supported server

Windows Server 2003, Windows 2000 Server with SP3 [desktop apps only]

Header

Wuapi.h

IDL

Wuapi.idl

Library

Wuguid.lib

DLL

Wuapi.dll

See also

IUpdateHistoryEntry2