Class UsbManager

Definition

Namespace:
Tizen.System.Usb
Assembly:
Tizen.System.Usb.dll

The USB Manager class.

C#
Copy
public class UsbManager : IDisposable
Inheritance
object
UsbManager
Implements
System.IDisposable

Constructors

View Source

UsbManager()

The USB Manager constructor.

Declaration
C#
Copy
public UsbManager()

Properties

View Source

AvailableDevices

This function returns a list of USB devices attached to the system.

Declaration
C#
Copy
public IEnumerable<UsbDevice> AvailableDevices { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<T><UsbDevice>
Exceptions
Type Condition
System.NotSupportedException

Throws an exception if the USB host feature is not enabled.

System.OutOfMemoryException

Throws an exception in case of insufficient memory.

System.UnauthorizedAccessException

Throws an exception if the user has insufficient permission on the device.

Methods

View Source

Dispose()

Declaration
C#
Copy
public void Dispose()
View Source

Dispose(bool)

Declaration
C#
Copy
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
bool disposing
View Source

~UsbManager()

Declaration
C#
Copy
protected ~UsbManager()

Events

View Source

DeviceHotPlugged

An event handler for events when the USB device is attached or detached.

Declaration
C#
Copy
public event EventHandler<HotPluggedEventArgs> DeviceHotPlugged
Event Type
Type Description
System.EventHandler<TEventArgs><HotPluggedEventArgs>

Implements

System.IDisposable