Click or drag to resize

Device Class

[This is preliminary documentation and is subject to change.]

A generic base class for physical devices.
Inheritance Hierarchy

Namespace:  UsbEject
Assembly:  UsbEject (in UsbEject.dll) Version: 3.0.0.0 (3.0.0.0)
Syntax
[TypeConverterAttribute(typeof(ExpandableObjectConverter))]
public class Device : IComparable

The Device type exposes the following members.

Properties
  NameDescription
Public propertyCapabilities
Gets the device's capabilities.
Public propertyClass
Gets the device's class name.
Public propertyClassGuid
Gets the device's class Guid as a string.
Public propertyDescription
Gets the device's description.
Public propertyDeviceClass
Gets the device's class instance.
Public propertyFriendlyName
Gets the device's friendly name.
Public propertyIndex
Gets the device's index.
Public propertyInstanceHandle
Gets the device's instance handle.
Public propertyIsUsb
Gets a value indicating whether this device is a USB device.
Public propertyParent
Gets the device's parent device or null if this device has not parent.
Public propertyPath
Gets the device's path.
Public propertyRemovableDevices
Gets this device's list of removable devices. Removable devices are parent devices that can be removed.
Top
Methods
  NameDescription
Public methodCompareTo
Compares the current instance with another object of the same type.
Public methodEject
Ejects the device.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also