LibUsbDotNet/LibUsbDotNet/LibUsb/UsbDevice.Device.cs
/// <summary>
/// Get a USB configuration descriptor based on its index.
/// </summary>
/// <param name="configIndex">
/// The index of the configuration you wish to retrieve
/// </param>
/// <returns>
/// The requested descriptor.
/// </returns>
Get a USB configuration descriptor based on its index.
Get a USB configuration descriptor based on its index .
public UsbConfigInfo GetConfigDescriptor(byte configIndex)
        {
            if (this.TryGetConfigDescriptor(configIndex, out UsbConfigInfo descriptor))
            {
                return descriptor;
            }
            else
            {
                throw new UsbException(Error.NotFound);
            }
        }
public UsbConfigInfo GetConfigDescriptor ( byte configIndex ) { if ( this . TryGetConfigDescriptor ( configIndex , out UsbConfigInfo descriptor ) ) { return descriptor ; } else { throw new UsbException ( Error . NotFound ) ; } }
Get a USB configuration descriptor based on its index.
Get a USB configuration descriptor based on its index .
The requested descriptor.
The requested descriptor .
configIndex
byte
The index of the configuration you wish to retrieve
The index of the configuration you wish to retrieve