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 : IUsbInterfaceDescriptorpublic sealed class UsbInterfaceDescriptor : IUsbInterfaceDescriptorPublic NotInheritable Class UsbInterfaceDescriptor Implements IUsbInterfaceDescriptor// You can use this class in JavaScript.
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

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// You can use this property in JavaScript.
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// You can use this property in JavaScript.
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// You can use this property in JavaScript.
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// You can use this property in JavaScript.
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// You can use this property in JavaScript.
Value
byte byte byte byte

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

Methods

Parse(UsbDescriptor) 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// You can use this method in JavaScript.
Parameters
descriptor
UsbDescriptor UsbDescriptor UsbDescriptor UsbDescriptor

A UsbDescriptor object that contains the USB interface descriptor.

Returns

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.

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// You can use this method in JavaScript.
Parameters
Returns
PlatForm::Boolean bool bool bool

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