UsbInterfaceSetting Class

Definition

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.

public ref class UsbInterfaceSetting sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class UsbInterfaceSetting final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class UsbInterfaceSetting
Public NotInheritable Class UsbInterfaceSetting
Inheritance
Object Platform::Object IInspectable UsbInterfaceSetting
Attributes

Windows requirements

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

Remarks

For code example, see UsbInterface.

Properties

BulkInEndpoints

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

BulkOutEndpoints

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

Descriptors

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

InterfaceDescriptor

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

InterruptInEndpoints

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

InterruptOutEndpoints

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

Selected

Determines whether the alternate setting is currently selected.

Methods

SelectSettingAsync()

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

Applies to