Поделиться через


IUpdateServer.GetUpdateClassifications Method (DateTime, DateTime)

 

Applies To: Windows Server Update Services

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

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

Syntax

UpdateClassificationCollection GetUpdateClassifications(
    DateTime fromArrivalDate,
    DateTime toArrivalDate
)
UpdateClassificationCollection^ GetUpdateClassifications(
    DateTime fromArrivalDate,
    DateTime toArrivalDate
)
abstract GetUpdateClassifications : 
        fromArrivalDate:DateTime *
        toArrivalDate:DateTime -> UpdateClassificationCollection
Function GetUpdateClassifications (
    fromArrivalDate As Date,
    toArrivalDate As Date
) As UpdateClassificationCollection

Parameters

  • fromArrivalDate
    Type: System.DateTime

    UTC date and time for the beginning of the date range corresponding to the date when update classifications 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 classifications were added locally to this server.

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateClassificationCollection

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

Exceptions

Exception

Condition

ArgumentOutOfRangeException

fromArrivalDate cannot be greater than toArrivalDate.

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

To get a list of all known classifications, call GetUpdateClassifications.

See Also

GetUpdateClassifications Overload
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top