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.
C#Copypublic class UsbDevice : IDisposable
- Inheritance
-
System.ObjectUsbDevice
- Implements
-
System.IDisposable
Properties
Declaration
C#Copypublic UsbConfiguration ActiveConfiguration { get; }
Property Value
Type | Description |
---|---|
UsbConfiguration |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | Throws exception if device is disconnected or not opened for operation. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Declaration
C#Copypublic int Address { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Declaration
C#Copypublic int BusId { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Exceptions
Type | Condition |
---|---|
System.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
Configurations
A dictionary for mapping the configuration IDs to configuration instances for this device.
Declaration
C#Copypublic IReadOnlyDictionary<int, UsbConfiguration> Configurations { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyDictionary<System.Int32, UsbConfiguration> |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Declaration
C#Copypublic UsbControlEndpoint ControlEndpoint { get; }
Property Value
Type | Description |
---|---|
UsbControlEndpoint |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Declaration
C#Copypublic UsbDeviceInformation DeviceInformation { get; }
Property Value
Type | Description |
---|---|
UsbDeviceInformation |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Declaration
C#Copypublic bool IsOpened { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Declaration
C#Copypublic IEnumerable<int> Ports { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Int32> |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Declaration
C#Copypublic UsbDeviceStrings Strings { get; }
Property Value
Type | Description |
---|---|
UsbDeviceStrings |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
System.InvalidOperationException | Throws exception if device is disconnected or not opened for operation. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
Methods
Declaration
C#Copypublic void Close()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
API Level: 4
Feature: http://tizen.org/feature/usb.host
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()
API Level: 4
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic void Open()
Exceptions
Type | Condition |
---|---|
System.NotSupportedException | The required feature is not supported. |
OutOfMemoryException | Throws an exception in case of insufficient memory. |
System.InvalidOperationException | Throws an exception if the device is disconnected. |
UnauthorizedAccessException | Throws an exception if the user has insufficient permission on the device. |