Compartilhar via


ISubscription.GetUpdateClassifications Method ()

 

Applies To: Windows Server Update Services

Gets the classifications of updates that the WSUS server synchronizes, for example, security or critical updates.

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

Syntax

UpdateClassificationCollection GetUpdateClassifications()
UpdateClassificationCollection^ GetUpdateClassifications()
abstract GetUpdateClassifications : unit -> UpdateClassificationCollection
Function GetUpdateClassifications As UpdateClassificationCollection

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateClassificationCollection

An UpdateClassificationCollection collection that contains the classifications of updates that the WSUS server synchronizes.

Remarks

This method does not connect to the database to retrieve classifications. Instead, this method will return classifications loaded on the local ISubscription object. The collection contains a snapshot of the classifications that are defined at the time you retrieved the ISubscription instance. It is possible for the list of classifications to be updated after you retrieve the instance.

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

See Also

ISubscription Interface
Microsoft.UpdateServices.Administration Namespace

Return to top