共用方式為


IUpdateServer.GetUpdateCategories Method (DateTime, DateTime)

 

Applies To: Windows Server Update Services

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

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

Syntax

UpdateCategoryCollection GetUpdateCategories(
    DateTime fromArrivalDate,
    DateTime toArrivalDate
)
UpdateCategoryCollection^ GetUpdateCategories(
    DateTime fromArrivalDate,
    DateTime toArrivalDate
)
abstract GetUpdateCategories : 
        fromArrivalDate:DateTime *
        toArrivalDate:DateTime -> UpdateCategoryCollection
Function GetUpdateCategories (
    fromArrivalDate As Date,
    toArrivalDate As Date
) As UpdateCategoryCollection

Parameters

  • fromArrivalDate
    Type: System.DateTime

    UTC date and time for the beginning of the date range corresponding to the date when update categories were added locally to this server.

  • toArrivalDate
    Type: System.DateTime

    UTC date and time for the end of the date range corresponding to the date when update categories were added locally to this server.

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateCategoryCollection

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

Exceptions

Exception

Condition

ArgumentOutOfRangeException

fromArrivalDate cannot be greater than toArrivalDate.

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 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.

See Also

GetUpdateCategories Overload
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top