LibUsbDotNet/LibUsbDotNet/LibUsb/UsbDevice.Interfaces.cs
/// <summary>
/// Sets an alternate interface for the most recent claimed interface.
/// </summary>
/// <param name="alternateID">The alternate interface to select for the most recent claimed interface See <see cref="ClaimInterface"/>.</param>
/// <returns>True on success.</returns>
Sets an alternate interface for the most recent claimed interface.
Sets an alternate interface for the most recent claimed interface .
public bool SetAltInterface(int alternateID)
        {
            if (this.mClaimedInterfaces.Count == 0)
            {
                throw new UsbException("You must claim an interface before setting an alternate interface.");
            }
            return this.SetAltInterface(this.mClaimedInterfaces[this.mClaimedInterfaces.Count - 1], alternateID);
        }
public bool SetAltInterface ( int alternateID ) { if ( this . mClaimedInterfaces . Count == 0 ) { throw new UsbException ( " " ) ; } return this . SetAltInterface ( this . mClaimedInterfaces [ this . mClaimedInterfaces . Count - 1 ] , alternateID ) ; }
Sets an alternate interface for the most recent claimed interface.
Sets an alternate interface for the most recent claimed interface .
True on success.
True on success .
alternateID
int
The alternate interface to select for the most recent claimed interface See .
The alternate interface to select for the most recent claimed interface See .