# IHostUSBDeviceCollection Interface Reference

List of all members.

## Public Member Functions
void | getItemAt (in unsigned long index,[retval] out IHostUSBDevice item)
void | enumerate ([retval] out IHostUSBDeviceEnumerator enumerator)
void | findById (in uuid id,[retval] out IHostUSBDevice device)
| Searches this collection for a USB device with the given UUID.
void | findByAddress (in wstring name,[retval] out IHostUSBDevice device)
| Searches this collection for a USB device with the given host address.
## Public Attributes
readonly attribute unsigned long | count

## Member Function Documentation

void IHostUSBDeviceCollection::getItemAt | ( | in unsigned long | index,
|  | [retval] out IHostUSBDevice | item |
| ) |  |  |

void IHostUSBDeviceCollection::enumerate | ( | [retval] out IHostUSBDeviceEnumerator | enumerator | ) |

void IHostUSBDeviceCollection::findById | ( | in uuid | id,
|  | [retval] out IHostUSBDevice | device |
| ) |  |  |

Searches this collection for a USB device with the given UUID.

Parameters:

  | id | UUID of the USB device to search for.
  | device | Found USB device object.

Note:
  The method returns an error if the given UUID does not correspond to any USB device in the collection.

See also:
  IHostUSBDevice::id

void IHostUSBDeviceCollection::findByAddress | ( | in wstring | name,
|  | [retval] out IHostUSBDevice | device |
| ) |  |  |

Searches this collection for a USB device with the given host address.

Parameters:

  | name | Address of the USB device (as assigned by the host) to search for.
  | device | Found USB device object.

Note:
  The method returns an error if the given address does not correspond to any USB device in the collection.

See also:
  IHostUSBDevice::address

## Member Data Documentation

readonly attribute unsigned long IHostUSBDeviceCollection::count