UsbInterfaceSetting class

UsbInterfaceSetting class

Provides information about an alternate setting and select that setting. The app can get the USB interface descriptors for the setting and its endpoints, and determine whether this setting is currently selected.

Syntax


var usbInterfaceSetting = Windows.Devices.Usb.UsbInterface.InterfaceSettings;

Members

The UsbInterfaceSetting class has these types of members:

Methods

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

MethodDescription
SelectSettingAsync Selects the alternate setting as the current setting in the USB interface.

 

Properties

The UsbInterfaceSetting class has these properties.

PropertyAccess typeDescription

BulkInEndpoints

Read-only

Gets an array of objects that represent descriptors associated with USB bulk IN endpoints that are defined in the alternate setting.

BulkOutEndpoints

Read-only

Gets an array of objects that represent descriptors associated with USB bulk OUT endpoints that are defined in the alternate setting.

Descriptors

Read-only

Gets an array of objects that represent descriptors associated with the alternate setting.

InterfaceDescriptor

Read-only

Gets an object that represents the descriptor that describes the alternate setting.

InterruptInEndpoints

Read-only

Gets an array of objects that represent descriptors associated with USB interrupt IN endpoints that are defined in the alternate setting.

InterruptOutEndpoints

Read-only

Gets an array of objects that represent descriptors associated with USB interrupt OUT endpoints that are defined in the alternate setting.

Selected

Read-only

Determines whether the alternate setting is currently selected.

 

Remarks

For code example, see UsbInterface.

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