Click or drag to resize

DeviceChangeEventArgs Class

Provides data for the DeviceChange event.
Inheritance Hierarchy
SystemObject
  SystemEventArgs
    WinUsbNetDeviceChangeEventArgs

Namespace:  WinUsbNet
Assembly:  WinUsbNet (in WinUsbNet.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class DeviceChangeEventArgs : EventArgs

The DeviceChangeEventArgs type exposes the following members.

Constructors
  NameDescription
Public methodDeviceChangeEventArgs
Initializes a new instance of the DeviceChangeEventArgs class.
Top
Properties
  NameDescription
Public propertyDeviceName
Gets the string generated by Windows that uniquely identifies the USB device.
Public propertyIsAttach
Get a value that indicates if the DeviceChange event is reporting device attach or detach.
Public propertyUsbDevice
Gets the UsbDevice affected by the event.
Top
Methods
  NameDescription
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
Remarks
Use the IsAttach member to determine if a USB device has just been attached or detached.
See Also