IUpdateServer.GetComputerTargetCount Method (ComputerTargetScope)
Applies To: Windows Server Update Services
Gets the number of computers that match the specified search criteria.
Namespace: Microsoft.UpdateServices.Administration
Assembly: Microsoft.UpdateServices.Administration (in Microsoft.UpdateServices.Administration.dll)
Syntax
int GetComputerTargetCount(
ComputerTargetScope searchScope
)
int GetComputerTargetCount(
ComputerTargetScope^ searchScope
)
abstract GetComputerTargetCount :
searchScope:ComputerTargetScope -> int
Function GetComputerTargetCount (
searchScope As ComputerTargetScope
) As Integer
Parameters
searchScope
Type: Microsoft.UpdateServices.Administration.ComputerTargetScopeSearch parameters used to filter the result set.
Return Value
Type: System.Int32
The number of computers that match the specified search criteria.
Exceptions
Exception
Condition
searchScope is null.
Meets one of the following conditions:
searchScope.FromLastSyncTime is greater than searchScope.ToLastSyncTime
searchScope.FromLastReportedStatusTime is greater than searchScope.ToLastReportedStatusTime.
See Also
GetComputerTargetCount Overload
IUpdateServer Interface
Microsoft.UpdateServices.Administration Namespace
Return to top