Table of Contents

Class USBConfiguration

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The USBConfiguration 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
Experimental
The USBConfiguration() constructor
creates 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

device USBDevice
configurationValue byte

Remarks

Properties

ConfigurationName

NOTE
Experimental
The configurationName read-only property
of 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 iConfiguration
field 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
Experimental
The configurationValue read-only property
of 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
Experimental
The interfaces read-only property of the
USBConfiguration 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'.

Remarks