UsbInterfaceDescriptor UsbInterfaceDescriptor UsbInterfaceDescriptor UsbInterfaceDescriptor UsbInterfaceDescriptor Class

Definition

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)
public : sealed class UsbInterfaceDescriptor : IUsbInterfaceDescriptor
struct winrt::Windows::Devices::Usb::UsbInterfaceDescriptor : IUsbInterfaceDescriptor
public sealed class UsbInterfaceDescriptor : IUsbInterfaceDescriptor
Public NotInheritable Class UsbInterfaceDescriptor Implements IUsbInterfaceDescriptor
// This class does not provide a public constructor.
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

AlternateSettingNumber 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.

ClassCode 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.

InterfaceNumber InterfaceNumber InterfaceNumber InterfaceNumber InterfaceNumber

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

ProtocolCode 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.

SubclassCode 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.

Methods

Parse(UsbDescriptor) Parse(UsbDescriptor) Parse(UsbDescriptor) Parse(UsbDescriptor) Parse(UsbDescriptor)

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

TryParse(UsbDescriptor, UsbInterfaceDescriptor) TryParse(UsbDescriptor, UsbInterfaceDescriptor) TryParse(UsbDescriptor, UsbInterfaceDescriptor) TryParse(UsbDescriptor, UsbInterfaceDescriptor) TryParse(UsbDescriptor, UsbInterfaceDescriptor)

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