Share via


IUpdateServer.GetUpdateCategories(DateTime, DateTime)

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

public UpdateCategoryCollection GetUpdateCategories(
  DateTime fromSyncDate,
  DateTime toSyncDate
);
Public Function GetUpdateCategories( _
  ByVal fromSyncDate As DateTime, _
  ByVal toSyncDate As DateTime _
) As UpdateCategoryCollection
Implements IUpdateServer.GetUpdateCategories

Parameters

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

Return Values

An UpdateCategoryCollection collection that contains the categories that were added during the specified date range (inclusively). 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.

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