Class UsbConfiguration
Definition
- Assembly:
- Tizen.System.Usb.dll
A class to manage the USB configuration.
C#Copypublic class UsbConfiguration : IDisposable
- Inheritance
-
objectUsbConfiguration
- Implements
-
System.IDisposable
Properties
Declaration
C#Copypublic string ConfigurationString { get; }
Property Value
Type | Description |
---|---|
string |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | Throws exception if device is disconnected or not opened for operation or busy as its interfaces are currently claimed. |
Interfaces
A dictionary for mapping the interface IDs to interface instances for a given configuration.
Declaration
C#Copypublic IReadOnlyDictionary<int, UsbInterface> Interfaces { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><int, UsbInterface> |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
Declaration
C#Copypublic bool IsSelfPowered { get; }
Property Value
Type | Description |
---|---|
bool |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
Declaration
C#Copypublic int MaximumPowerRequired { get; }
Property Value
Type | Description |
---|---|
int |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
SupportRemoteWakeup
Checks if the device in a given configuration supports remote wakeup.
Declaration
C#Copypublic bool SupportRemoteWakeup { get; }
Property Value
Type | Description |
---|---|
bool |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
Methods
Dispose()
Releases all the resources used by the ConnectionProfile. It should be called after it has finished using the object.
Declaration
C#Copypublic void Dispose()
Declaration
C#Copyprotected ~UsbConfiguration()
Declaration
C#Copypublic void SetAsActive()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | Throws an exception if the device is disconnected, or not opened for an operation, or busy as its interfaces are currently claimed. |