UsbInterfaceDescriptor UsbInterfaceDescriptor UsbInterfaceDescriptor UsbInterfaceDescriptor Class

Describes a USB alternate setting (of an interface) in an interface descriptor. For an explanation of an interface descriptor, see Section 9.6.5 in the Universal Serial Bus Specification:

  • Table 9.15 in the Universal Serial Bus 3.0 Specification
  • Table 9.12 in the Universal Serial Bus Specification (version 2.0)

Syntax

Declaration

public sealed class UsbInterfaceDescriptorpublic sealed class UsbInterfaceDescriptorPublic NotInheritable Class UsbInterfaceDescriptor

Properties summary

Gets the bAlternateSetting field of the USB interface descriptor. The value is a number that identifies the alternate setting defined by the interface.

Gets the bInterfaceClass field of the USB interface descriptor. The value indicates the USB-defined class to which the interface conforms.

Gets the bInterfaceNumber field of the USB interface descriptor. The value is the index that identifies the interface.

Gets the bInterfaceProtocol field of the interface descriptor. The value is a USB-assigned identifier that specifies a USB-defined protocol to which the interface conforms.

Gets the bInterfaceSubClass field of the USB interface descriptor. The value is a USB-assigned identifier that specifies a USB-defined subclass to which the interface.

Methods summary

Parses the specified USB descriptor and returns alternate setting information in a UsbInterfaceDescriptor object.

Retrieves information about the alternate setting in a UsbInterfaceDescriptor object that is contained in a UsbDescriptor object.

Properties

  • AlternateSettingNumber
    AlternateSettingNumber
    AlternateSettingNumber
    AlternateSettingNumber

    Gets the bAlternateSetting field of the USB interface descriptor. The value is a number that identifies the alternate setting defined by the interface.

    public byte AlternateSettingNumber { get; }public byte AlternateSettingNumber { get; }Public ReadOnly Property AlternateSettingNumber As byte

    Property Value

    • byte
      byte
      byte
      byte

      A number that identifies the alternate setting defined by the interface.

  • ClassCode
    ClassCode
    ClassCode
    ClassCode

    Gets the bInterfaceClass field of the USB interface descriptor. The value indicates the USB-defined class to which the interface conforms.

    public byte ClassCode { get; }public byte ClassCode { get; }Public ReadOnly Property ClassCode As byte

    Property Value

    • byte
      byte
      byte
      byte

      The USB-defined class to which the interface conforms.

  • InterfaceNumber
    InterfaceNumber
    InterfaceNumber
    InterfaceNumber

    Gets the bInterfaceNumber field of the USB interface descriptor. The value is the index that identifies the interface.

    public byte InterfaceNumber { get; }public byte InterfaceNumber { get; }Public ReadOnly Property InterfaceNumber As byte

    Property Value

    • byte
      byte
      byte
      byte

      The index that identifies the interface.

  • ProtocolCode
    ProtocolCode
    ProtocolCode
    ProtocolCode

    Gets the bInterfaceProtocol field of the interface descriptor. The value is a USB-assigned identifier that specifies a USB-defined protocol to which the interface conforms.

    public byte ProtocolCode { get; }public byte ProtocolCode { get; }Public ReadOnly Property ProtocolCode As byte

    Property Value

    • byte
      byte
      byte
      byte

      A USB-assigned identifier that specifies a USB-defined protocol to which the interface conforms.

  • SubclassCode
    SubclassCode
    SubclassCode
    SubclassCode

    Gets the bInterfaceSubClass field of the USB interface descriptor. The value is a USB-assigned identifier that specifies a USB-defined subclass to which the interface.

    public byte SubclassCode { get; }public byte SubclassCode { get; }Public ReadOnly Property SubclassCode As byte

    Property Value

    • byte
      byte
      byte
      byte

      A USB-assigned identifier that specifies a USB-defined subclass to which the interface.

Methods

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.DualApiPartitionAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute

Details

Assembly

Windows.Devices.Usb.dll