Definition
- Namespace:
- Tizen.System.Usb
- Assembly:
- Tizen.System.Usb.dll
A class to manage the USB host devices. This class contains the operations for enumerating, opening, and closing devices.
public class UsbDevice : IDisposable
- Inheritance
-
- Implements
-
System.IDisposable
Properties
View Source
ActiveConfiguration
Active configuration for the device.
Declaration
public UsbConfiguration ActiveConfiguration { get; }
Property Value
Exceptions
| Type |
Condition |
| System.InvalidOperationException |
Throws an exception if the device is disconnected.
|
Declaration
public int Address { get; }
Property Value
View Source
BusId
Number of the bus, this device is connected to.
Declaration
public int BusId { get; }
Property Value
Exceptions
| Type |
Condition |
| System.UnauthorizedAccessException |
Throws an exception if the user has insufficient permission on the device.
|
View Source
Configurations
A dictionary for mapping the configuration IDs to configuration instances for this device.
Declaration
public IReadOnlyDictionary<int, UsbConfiguration> Configurations { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IReadOnlyDictionary<TKey, TValue><int, UsbConfiguration> |
|
View Source
ControlEndpoint
Controls an endpoint (endpoint 0).
Declaration
public UsbControlEndpoint ControlEndpoint { get; }
Property Value
View Source
Device information such as version, class, subclass, etc.
Declaration
public UsbDeviceInformation DeviceInformation { get; }
Property Value
Declaration
public bool IsOpened { get; }
Property Value
View Source
Ports
List of the available port numbers from the device.
Declaration
public IEnumerable<int> Ports { get; }
Property Value
| Type |
Description |
| System.Collections.Generic.IEnumerable<T><int> |
|
Declaration
public UsbDeviceStrings Strings { get; }
Property Value
Methods
Declaration
Exceptions
| Type |
Condition |
| System.InvalidOperationException |
Throws an exception if the device is not opened for an operation.
|
View Source
Dispose()
Releases all the resources used by the ConnectionProfile.
It should be called after it has finished using the object.
Declaration
View Source
Dispose(bool)
Releases all the resources used by the ConnectionProfile.
It should be called after it has finished using the object.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type |
Name |
Description |
| bool |
disposing |
|
View Source
~UsbDevice()
Finalizes an instance of the UsbDevice class.
Declaration
View Source
Open()
Opens the device, which allows performing operations on it.
Declaration
Exceptions
| Type |
Condition |
| System.OutOfMemoryException |
Throws an exception in case of insufficient memory.
|
| System.InvalidOperationException |
Throws an exception if the device is disconnected.
|
| System.UnauthorizedAccessException |
Throws an exception if the user has insufficient permission on the device.
|
Implements
System.IDisposable