Windows hardware
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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


var usbInterfaceDescriptor = Windows.Devices.Usb.UsbInterfaceDescriptor;

Members

The UsbInterfaceDescriptor class has these types of members:

Methods

The UsbInterfaceDescriptor class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
Parse Parses the specified USB descriptor and returns alternate setting information in a UsbInterfaceDescriptor object.
TryParse Retrieves information about the alternate setting in a UsbInterfaceDescriptor object that is contained in a UsbDescriptor object.

 

Properties

The UsbInterfaceDescriptor class has these properties.

PropertyAccess typeDescription

AlternateSettingNumber

Read-only

Gets the bAlternateSetting field of the USB interface descriptor.

ClassCode

Read-only

Gets the bInterfaceClass field of the USB interface descriptor.

InterfaceNumber

Read-only

Gets the bInterfaceNumber field of the USB interface descriptor.

ProtocolCode

Read-only

Gets the bInterfaceProtocol field of the interface descriptor.

SubclassCode

Read-only

Gets the bInterfaceSubClass field of the USB interface descriptor.

 

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

Windows.Devices.Usb
Windows::Devices::Usb [C++]

Metadata

Windows.winmd

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06030000)]

See also

Object

 

 

Show:
© 2016 Microsoft