LibUsbDotNet/LibUsbDotNet/LibUsb/UsbDevice.Interfaces.cs
/// <summary>
/// Claims the specified interface of the device.
/// </summary>
/// <param name="interfaceID">The interface to claim.</param>
/// <returns>True on success.</returns>
Claims the specified interface of the device.
Claims the specified interface of the device .
public bool ClaimInterface(int interfaceID)
        {
            this.EnsureOpen();
            if (this.mClaimedInterfaces.Contains(interfaceID))
            {
                return true;
            }
            NativeMethods.ClaimInterface(this.deviceHandle, interfaceID).ThrowOnError();
            this.mClaimedInterfaces.Add(interfaceID);
            return true;
        }
public bool ClaimInterface ( int interfaceID ) { this . EnsureOpen ( ) ; if ( this . mClaimedInterfaces . Contains ( interfaceID ) ) { return true ; } NativeMethods . ClaimInterface ( this . deviceHandle , interfaceID ) . ThrowOnError ( ) ; this . mClaimedInterfaces . Add ( interfaceID ) ; return true ; }
Claims the specified interface of the device.
Claims the specified interface of the device .
True on success.
True on success .
interfaceID
int
The interface to claim.
The interface to claim .