Share via


ISubscription.GetUpdateCategories()

Retrieves the categories of updates that the WSUS server synchronizes. For example, updates for Windows products or updates for the Windows XP family.

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

Parameters

This method has no parameters.

Return Values

An UpdateCategoryCollection collection of the update categories that the WSUS server synchronizes.

Remarks

The collection contains a snapshot of the categories that are defined at the time you retrieved the ISubscription instance. It is possible for the list of categories to be updated after you retrieve the instance.

To specify the categories that the WSUS server synchronizes, call ISubscription.SetUpdateCategories. If you call GetUpdateClassifications after calling SetUpdateCategories, the collection that GetUpdateClassifications returns will not reflect your changes.

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.