USB Port Monitoring Control
USB Monitoring Control - USB Device Data Monitoring ActiveX Component Library

IDeviceCollection Interface

HHD Software - Hex Editor Serial Port Monitor USB Protocol Analyzer Network Monitor
 
 
 
< PreviousTopNext >
Declaration
Interface Declaration:
interface IDeviceCollection : IDispatch
Remarks
IDeviceCollection Interface
Note for Implementers
You do not implement this interface. It is implemented by the USB Monitoring Control.
Note for Users

You obtain this interface by taking the value of the IUsbMonitor.Devices property and use to enumerate the installed USB devices. There are two ways for using this interface. You can get the Count property value to get the number of devices in the collection and then use the default Item property to get the IDevice interface for each device in a collection.

Another way of enumerating the devices in the collection is to take the value of the _NewEnum property to get the object exposing the IEnumVARIANT interface and use its properties and members to enumerate the collection.

Note that usually this process is somehow automated in scripting and CLR languages. You will find the code samples in topics for the _NewEnum and Item properties.

Properties
PropertyDescription
_NewEnum Returns the IEnumVARIANT enumerator for the collection. This property is read only.
Count Returns the number of devices. This property is read only.
Item Returns the device from the collection. This property is read only.
< PreviousTopNext >
Copyright © 2011 HHD Software. All rights reserved.