Usb​Interface​Descriptor Usb​Interface​Descriptor Usb​Interface​Descriptor 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 : IUsbInterfaceDescriptorpublic sealed class UsbInterfaceDescriptor : IUsbInterfaceDescriptorPublic NotInheritable Class UsbInterfaceDescriptor Implements IUsbInterfaceDescriptor
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Properties

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
Value
byte byte byte

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

Attributes

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
Value
byte byte byte

The USB-defined class to which the interface conforms.

Attributes

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
Value
byte byte byte

The index that identifies the interface.

Attributes

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
Value
byte byte byte

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

Attributes

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
Value
byte byte byte

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

Attributes

Methods

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

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

public : static UsbInterfaceDescriptor Parse(UsbDescriptor descriptor)public static UsbInterfaceDescriptor Parse(UsbDescriptor descriptor)Public Static Function Parse(descriptor As UsbDescriptor) As UsbInterfaceDescriptor
Parameters
descriptor
UsbDescriptor UsbDescriptor UsbDescriptor

A UsbDescriptor object that contains the USB interface descriptor.

Returns
Attributes

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.

public : static PlatForm::Boolean TryParse(UsbDescriptor descriptor, UsbInterfaceDescriptor parsed)public static bool TryParse(UsbDescriptor descriptor, UsbInterfaceDescriptor parsed)Public Static Function TryParse(descriptor As UsbDescriptor, parsed As UsbInterfaceDescriptor) As bool
Parameters
descriptor
UsbDescriptor UsbDescriptor UsbDescriptor

The UsbDescriptor object to parse.

Returns
PlatForm::Boolean bool bool

True, if the specified UsbDescriptor object is USB interface descriptor. Otherwise, false.

Attributes