UsbInterfaceSetting
UsbInterfaceSetting
UsbInterfaceSetting
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 : sealed class UsbInterfaceSetting : IUsbInterfaceSettingpublic sealed class UsbInterfaceSetting : IUsbInterfaceSettingPublic NotInheritable Class UsbInterfaceSetting Implements IUsbInterfaceSetting// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
For code example, see UsbInterface.
Properties
BulkInEndpoints BulkInEndpoints BulkInEndpoints BulkInEndpoints
Gets an array of objects that represent descriptors associated with USB bulk IN endpoints that are defined in the alternate setting.
public : IVectorView<UsbBulkInEndpointDescriptor> BulkInEndpoints { get; }public IReadOnlyList<UsbBulkInEndpointDescriptor> BulkInEndpoints { get; }Public ReadOnly Property BulkInEndpoints As IReadOnlyList<UsbBulkInEndpointDescriptor>// You can use this property in JavaScript.
- Value
- IVectorView<UsbBulkInEndpointDescriptor> IReadOnlyList<UsbBulkInEndpointDescriptor> IReadOnlyList<UsbBulkInEndpointDescriptor> IReadOnlyList<UsbBulkInEndpointDescriptor>
An array of UsbBulkInEndpointDescriptor objects.
BulkOutEndpoints BulkOutEndpoints BulkOutEndpoints BulkOutEndpoints
Gets an array of objects that represent descriptors associated with USB bulk OUT endpoints that are defined in the alternate setting.
public : IVectorView<UsbBulkOutEndpointDescriptor> BulkOutEndpoints { get; }public IReadOnlyList<UsbBulkOutEndpointDescriptor> BulkOutEndpoints { get; }Public ReadOnly Property BulkOutEndpoints As IReadOnlyList<UsbBulkOutEndpointDescriptor>// You can use this property in JavaScript.
- Value
- IVectorView<UsbBulkOutEndpointDescriptor> IReadOnlyList<UsbBulkOutEndpointDescriptor> IReadOnlyList<UsbBulkOutEndpointDescriptor> IReadOnlyList<UsbBulkOutEndpointDescriptor>
An array of UsbBulkOutEndpointDescriptor objects.
Descriptors Descriptors Descriptors Descriptors
Gets an array of objects that represent descriptors associated with the alternate setting.
public : IVectorView<UsbDescriptor> Descriptors { get; }public IReadOnlyList<UsbDescriptor> Descriptors { get; }Public ReadOnly Property Descriptors As IReadOnlyList<UsbDescriptor>// You can use this property in JavaScript.
- Value
- IVectorView<UsbDescriptor> IReadOnlyList<UsbDescriptor> IReadOnlyList<UsbDescriptor> IReadOnlyList<UsbDescriptor>
An array of UsbDescriptor objects that represent the interface descriptor associated with the alternate setting.
InterfaceDescriptor InterfaceDescriptor InterfaceDescriptor InterfaceDescriptor
Gets an object that represents the descriptor that describes the alternate setting.
public : UsbInterfaceDescriptor InterfaceDescriptor { get; }public UsbInterfaceDescriptor InterfaceDescriptor { get; }Public ReadOnly Property InterfaceDescriptor As UsbInterfaceDescriptor// You can use this property in JavaScript.
A UsbInterfaceDescriptor object that has the full descriptor for the alternate setting. Requirements
InterruptInEndpoints InterruptInEndpoints InterruptInEndpoints InterruptInEndpoints
Gets an array of objects that represent descriptors associated with USB interrupt IN endpoints that are defined in the alternate setting.
public : IVectorView<UsbInterruptInEndpointDescriptor> InterruptInEndpoints { get; }public IReadOnlyList<UsbInterruptInEndpointDescriptor> InterruptInEndpoints { get; }Public ReadOnly Property InterruptInEndpoints As IReadOnlyList<UsbInterruptInEndpointDescriptor>// You can use this property in JavaScript.
- Value
- IVectorView<UsbInterruptInEndpointDescriptor> IReadOnlyList<UsbInterruptInEndpointDescriptor> IReadOnlyList<UsbInterruptInEndpointDescriptor> IReadOnlyList<UsbInterruptInEndpointDescriptor>
An array of UsbInterruptInEndpointDescriptor objects.
InterruptOutEndpoints InterruptOutEndpoints InterruptOutEndpoints InterruptOutEndpoints
Gets an array of objects that represent descriptors associated with USB interrupt OUT endpoints that are defined in the alternate setting.
public : IVectorView<UsbInterruptOutEndpointDescriptor> InterruptOutEndpoints { get; }public IReadOnlyList<UsbInterruptOutEndpointDescriptor> InterruptOutEndpoints { get; }Public ReadOnly Property InterruptOutEndpoints As IReadOnlyList<UsbInterruptOutEndpointDescriptor>// You can use this property in JavaScript.
- Value
- IVectorView<UsbInterruptOutEndpointDescriptor> IReadOnlyList<UsbInterruptOutEndpointDescriptor> IReadOnlyList<UsbInterruptOutEndpointDescriptor> IReadOnlyList<UsbInterruptOutEndpointDescriptor>
An array of UsbInterruptInEndpointDescriptor objects.
Selected Selected Selected Selected
Determines whether the alternate setting is currently selected.
public : PlatForm::Boolean Selected { get; }public bool Selected { get; }Public ReadOnly Property Selected As bool// You can use this property in JavaScript.
- Value
- PlatForm::Boolean bool bool bool
True, if the alternate setting is currently selected; otherwise, false.
Methods
SelectSettingAsync() SelectSettingAsync() SelectSettingAsync() SelectSettingAsync()
Selects the alternate setting as the current setting in the USB interface.
public : IAsyncAction SelectSettingAsync()public IAsyncAction SelectSettingAsync()Public Function SelectSettingAsync() As IAsyncAction// You can use this method in JavaScript.
An IAsyncAction object that is used to control the asynchronous operation.
Remarks
SelectSettingAsync disables the endpoints of the previous alternate setting and removes the pipes associated with them from the UsbInterface object. The method enables the endpoints of this setting, and adds the associated pipes to the UsbInterface object.