Compartir a través de


IUpdateServer.GetUpdates Method (UpdateScope)

 

Applies To: Windows Server Update Services

Gets all updates that match the specified search criteria.

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

Syntax

UpdateCollection GetUpdates(
    UpdateScope searchScope
)
UpdateCollection^ GetUpdates(
    UpdateScope^ searchScope
)
abstract GetUpdates : 
        searchScope:UpdateScope -> UpdateCollection
Function GetUpdates (
    searchScope As UpdateScope
) As UpdateCollection

Parameters

Return Value

Type: Microsoft.UpdateServices.Administration.UpdateCollection

A collection of updates that match the specified search criteria.

Exceptions

Exception

Condition

ArgumentNullException

searchScope is null.

ArgumentOutOfRangeException

One of the following conditions exist:

  • searchScope.FromArrivalDate is greater than searchScope.ToArrivalDate 

  • searchScope.FromCreationDate is greater than searchScope.ToCreationDate 

See Also

GetUpdates Overload
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top