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 ref class UsbInterfaceDescriptor sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UsbInterfaceDescriptor final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UsbInterfaceDescriptor
Public NotInheritable Class UsbInterfaceDescriptor
Inheritance
Object Platform::Object IInspectable UsbInterfaceDescriptor
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Properties

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

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

InterfaceNumber

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

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

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)

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

TryParse(UsbDescriptor, UsbInterfaceDescriptor)

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

Applies to