Share via


IUpdateServer.GetUpdateCategories()

Retrieves the list of all update categories that are known to the WSUS server.

public UpdateCategoryCollection GetUpdateCategories();
Public Function GetUpdateCategories() As UpdateCategoryCollection
Implements IUpdateServer.GetUpdateCategories

Parameters

This method has no parameters.

Return Values

An UpdateCategoryCollection collection that contains all the categories of updates that are known to the WSUS server. The collection is unordered.

Remarks

A category can represent a company, product family, or product. The root category is the company category. The company category can have one or more subcategories known as product family categories. Product family categories contain one or more product categories. To determine the category's type, use IUpdateCategory.Type. For example, the company category for Microsoft is Microsoft Corporation. The Microsoft Corporation category contains the Windows product family category, which in turn contains product categories, such as the Windows Server 2003 family and the Windows XP family.

To retrieve a list of categories added during a given time period, call IUpdateServer.GetUpdateCategories(DateTime, DateTime).

Requirements

Server Requires Windows Server 2003 or Windows 2000 Server SP4 and later.
Namespace

Defined in Microsoft.UpdateServices.Administration.

Assembly

Requires Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll).

.NET Framework

Requires .NET Framework 1.1.

See Also

IUpdateServer.GetRootUpdateCategories