IComputerTarget.GetInventory Method ()

 

Applies To: Windows Server Update Services

Gets the inventory items for this computer. All inventory items are returned.

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

Syntax

ReadOnlyCollection<IInventoryItem> GetInventory()
ReadOnlyCollection<IInventoryItem^>^ GetInventory()
abstract GetInventory : unit -> ReadOnlyCollection<IInventoryItem>
Function GetInventory As ReadOnlyCollection(Of IInventoryItem)

Return Value

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

A read-only collection of inventory items for this computer.

Exceptions

Exception

Condition

WsusObjectNotFoundException

The computer was not found.

See Also

GetInventory Overload
IComputerTarget Interface
Microsoft.UpdateServices.Administration Namespace

Return to top