Class UsbDevice
Definition
- Namespace:
- Tizen.System.Usb
- Assembly:
- Tizen.System.Usb.dll
- API Level:
- 4
A class to manage the USB host devices. This class contains the operations for enumerating, opening, and closing devices.
public class UsbDevice : IDisposable
- Inheritance
-
UsbDevice
- Implements
Properties
View SourceActiveConfiguration
Active configuration for the device.
Declaration
public UsbConfiguration ActiveConfiguration { get; }
Property Value
Type | Description |
---|---|
UsbConfiguration |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
InvalidOperationException | Throws exception if device is disconnected or not opened for operation. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceAddress
Address of the device on the bus.
Declaration
public int Address { get; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceBusId
Number of the bus, this device is connected to.
Declaration
public int BusId { get; }
Property Value
Type | Description |
---|---|
Int32 |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
UnauthorizedAccessException | Throws exception if user has insufficient permission on device. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceConfigurations
A dictionary for mapping the configuration IDs to configuration instances for this device.
Declaration
public IReadOnlyDictionary<int, UsbConfiguration> Configurations { get; }
Property Value
Type | Description |
---|---|
IReadOnlyDictionary<Int32, UsbConfiguration> |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceControlEndpoint
Controls an endpoint (endpoint 0).
Declaration
public UsbControlEndpoint ControlEndpoint { get; }
Property Value
Type | Description |
---|---|
UsbControlEndpoint |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceDeviceInformation
Device information such as version, class, subclass, etc.
Declaration
public UsbDeviceInformation DeviceInformation { get; }
Property Value
Type | Description |
---|---|
UsbDeviceInformation |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceIsOpened
Checks if the device is opened.
Declaration
public bool IsOpened { get; }
Property Value
Type | Description |
---|---|
Boolean |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourcePorts
List of the available port numbers from the device.
Declaration
public IEnumerable<int> Ports { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Int32> |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceStrings
String associated with the device.
Declaration
public UsbDeviceStrings Strings { get; }
Property Value
Type | Description |
---|---|
UsbDeviceStrings |
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
InvalidOperationException | Throws exception if device is disconnected or not opened for operation. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Methods
View SourceClose()
Closes the device for operations.
Declaration
public void Close()
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
View SourceDispose()
Releases all the resources used by the ConnectionProfile. It should be called after it has finished using the object.
Declaration
public void Dispose()
API Level: 4
View SourceFinalize()
Finalizes an instance of the UsbDevice class.
Declaration
protected void Finalize()
Open()
Opens the device, which allows performing operations on it.
Declaration
public void Open()
Exceptions
Type | Condition |
---|---|
NotSupportedException | The required feature is not supported. |
OutOfMemoryException | Throws an exception in case of insufficient memory. |
InvalidOperationException | Throws an exception if the device is disconnected. |
UnauthorizedAccessException | Throws an exception if the user has insufficient permission on the device. |