Click or drag to resize

USBNotifier Class

Helper class to receive notifications on USB device changes such as connecting or removing a device.
Inheritance Hierarchy
SystemObject
  MadWizard.WinUSBNetUSBNotifier

Namespace:  MadWizard.WinUSBNet
Assembly:  WinUSBNet (in WinUSBNet.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
public class USBNotifier : IDisposable

The USBNotifier type exposes the following members.

Constructors
  NameDescription
Public methodUSBNotifier(IntPtr, Guid)
Constructs a new USBNotifier that will watch for events on devices matching the given interface GUID. A window handle is needed since the notifier relies on window messages.
Public methodUSBNotifier(IntPtr, String)
Constructs a new USBNotifier that will watch for events on devices matching the given interface GUID. A window handle is needed since the notifier relies on window messages.
Public methodUSBNotifier(Control, Guid)
Constructs a new USBNotifier that will watch for events on devices matching the given interface GUID. A Windows Forms control is needed since the notifier relies on window messages.
Public methodUSBNotifier(Control, String)
Constructs a new USBNotifier that will watch for events on devices matching the given interface GUID. A Windows Forms control is needed since the notifier relies on window messages.
Top
Properties
  NameDescription
Public propertyGuid
The interface GUID of devices this USBNotifier will watch
Top
Methods
  NameDescription
Public methodDispose
Disposes the USBNotifier object and frees all resources. Call this method when the object is no longer needed.
Protected methodDispose(Boolean)
Disposes the object's resources.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodOnArrival
Triggers the arrival event
Protected methodOnRemoval
Triggers the removal event
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventArrival
Event triggered when a new USB device that matches the USBNotifier's GUID is connected
Public eventRemoval
Event triggered when a new USB device that matches the USBNotifier's GUID is disconnected
Top
See Also