Class USBConfiguration
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalUSBConfiguration interface of the WebUSB API provides information about a particular configuration of a USB device and the interfaces that it supports.
[Value("USBConfiguration")]
public class USBConfiguration
- Inheritance
-
USBConfiguration
- Inherited Members
Remarks
Constructors
USBConfiguration()
public USBConfiguration()
USBConfiguration(USBDevice, byte)
NOTE
ExperimentalUSBConfiguration() constructorcreates a new USBConfiguration object which contains information about
the configuration on the provided USBDevice with the given configuration value.
public USBConfiguration(USBDevice device, byte configurationValue)
Parameters
Remarks
Properties
ConfigurationName
NOTE
ExperimentalconfigurationName read-only propertyof the USBConfiguration interface returns the name provided by the device
to describe this configuration. This is equal to the value of the string descriptor with
the index provided in the
iConfigurationfield of the configuration descriptor defining this configuration.
[Value("configurationName")]
public string? ConfigurationName { get; }
Property Value
- string
The name provided by the device to describe this configuration.
Remarks
ConfigurationValue
NOTE
ExperimentalconfigurationValue read-only propertyof the USBConfiguration interface returns the configuration value of this configuration. This is equal to the
bConfigurationValue field of the configuration descriptor provided by the device defining this configuration.
[Value("configurationValue")]
public byte ConfigurationValue { get; }
Property Value
- byte
The configuration descriptor of the USBDevice specified in the constructor of the
current USBConfiguration instance.
Remarks
Interfaces
NOTE
Experimentalinterfaces read-only property of theUSBConfiguration interface returns an array containing instances of the
'USBInterface' describing each interface supported by this configuration.
[Value("interfaces")]
public USBInterface[] Interfaces { get; }
Property Value
- USBInterface[]
An array containing instances of 'USBInterface'.