IComputerTargetGroup.GetInventorySummary Method (InventoryScope , Boolean)

 

Applies To: Windows Server Update Services

Returns a collection of inventory items summed across this target group.

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

Syntax

ReadOnlyCollection<IInventoryItem> GetInventorySummary(
    InventoryScope[] scopes,
    bool includeSubgroups
)
ReadOnlyCollection<IInventoryItem^>^ GetInventorySummary(
    array<InventoryScope^>^ scopes,
    bool includeSubgroups
)
abstract GetInventorySummary : 
        scopes:InventoryScope[] *
        includeSubgroups:bool -> ReadOnlyCollection<IInventoryItem>
Function GetInventorySummary (
    scopes As InventoryScope(),
    includeSubgroups As Boolean
) As ReadOnlyCollection(Of IInventoryItem)

Parameters

  • includeSubgroups
    Type: System.Boolean

    true if subgroups of this group should be included, otherwise false.

Return Value

Type: System.Collections.ObjectModel.ReadOnlyCollection<IInventoryItem>

Returns a collection of inventory items summed across this target group. The collection is empty if scopes is empty.

Exceptions

Exception

Condition

WsusObjectNotFoundException

The computer target group could not be found.

ArgumentNullException

scopes cannot be null.

See Also

IComputerTargetGroup Interface
Microsoft.UpdateServices.Administration Namespace

Return to top