IUpdateServer.GetUpdateClassifications(DateTime, DateTime)

Retrieves the update classifications that were added within the specified date range.

public UpdateClassificationCollection GetUpdateClassifications(DateTimefromSyncDate,
DateTimetoSyncDate);
Public Function GetUpdateClassifications( _
  ByVal fromSyncDate As DateTime, _
  ByVal toSyncDate As DateTime _
) As UpdateClassificationCollection
Implements IUpdateServer.GetUpdateClassifications

Parameters

  • fromSyncDate
    Begin date that is used to search for classifications that were added locally to the WSUS server. Specify the date in Coordinated Universal Time.
  • toSyncDate
    End date that is used to search for classifications that were added locally to the WSUS server. Specify the date in Coordinated Universal Time.

Return Value

An UpdateCategoryCollection collection that contains the classifications that were added during the specified date range (inclusively). The collection is unordered.

Remarks

Classifications define a grouping of updates. For example, Security Updates, Critical Updates, or Driver Updates. You can select the classifications that you want to subscribe to from the collection and pass the list to ISubscription.SetUpdateClassifications.

To retrieve a list of all known classifications, call IUpdateServer.GetUpdateClassifications().

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.