ISubscription.GetUpdateCategories Method ()

 

Applies To: Windows Server Update Services

Gets the categories of updates synchronized by the WSUS server, for example, updates for Windows Server 2003 or for the Windows product family.

Namespace:   Microsoft.UpdateServices.Administration
Assembly:  Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)

Syntax

UpdateCategoryCollection GetUpdateCategories()
UpdateCategoryCollection^ GetUpdateCategories()
abstract GetUpdateCategories : unit -> UpdateCategoryCollection
Function GetUpdateCategories As UpdateCategoryCollection

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateCategoryCollection

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

Remarks

This method does not connect to the database to retrieve categories. Instead, this method will return categories loaded on the local ISubscription object. 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 get a refreshed copy of the categories, get a new instance of ISubscription.

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

See Also

ISubscription Interface
Microsoft.UpdateServices.Administration Namespace

Return to top