LibUsbDotNet 2.2.8
GetAssociatedInterface Method (associatedInterfaceIndex, usbDevice)
Library Reference ► LibUsbDotNet.WinUsb ► WinUsbDevice ► GetAssociatedInterface(Byte, WinUsbDevice%)
|
![]() |
Gets an interface associated with this WinUsbDevice.

C# | Visual Basic | Visual C++ |
public bool GetAssociatedInterface( byte associatedInterfaceIndex, out WinUsbDevice usbDevice )
Public Function GetAssociatedInterface ( _ associatedInterfaceIndex As Byte, _ <OutAttribute> ByRef usbDevice As WinUsbDevice _ ) As Boolean
public: bool GetAssociatedInterface( unsigned char associatedInterfaceIndex, [OutAttribute] WinUsbDevice^% usbDevice )

- associatedInterfaceIndex (Byte)
- The index to retrieve. (0 = next interface, 1= interface after next, etc.).
- usbDevice (WinUsbDevice%)
- A new WinUsbDevice class for the specified AssociatedInterfaceIndex.

True on success.