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
scopes
Type: Microsoft.UpdateServices.Administration.InventoryScope[]The classes to return summaries for, and which properties to summarize by.
includeSubgroups
Type: System.Booleantrue 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
The computer target group could not be found.
scopes cannot be null.
See Also
IComputerTargetGroup Interface
Microsoft.UpdateServices.Administration Namespace
Return to top