IUpdateServer.GetUpdateCount Method (UpdateScope)

 

Applies To: Windows Server Update Services

Get the number of updates that match the specified search criteria.

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

Syntax

int GetUpdateCount(
    UpdateScope searchScope
)
int GetUpdateCount(
    UpdateScope^ searchScope
)
abstract GetUpdateCount : 
        searchScope:UpdateScope -> int
Function GetUpdateCount (
    searchScope As UpdateScope
) As Integer

Parameters

Return Value

Type: System.Int32

The count 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

GetUpdateCount Overload
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace

Return to top