UnregisterEvent Method
Unregisters the specified EventID for the specified DeviceID. UnregisterEvent should only be called for the EventID and DeviceID for which you called RegisterEvent.
Syntax
object.UnregisterEvent( _ EventID As String, _ [DeviceID As String])
Parameters
EventID
Required. String value.DeviceID
Optional. String value.
*
Default.
Remarks
Unlike UnregisterPersistentEvent, UnregisterEvent does not need to be called because all events are unregistered automatically when the application exits.
Method Information
Minimum operating systems Windows XP SP1
See Also
DeviceID (Device), EventID, DeviceID (DeviceInfo), DeviceManager, OnEvent, RegisterEvent, RegisterPersistentEvent, UnregisterPersistentEvent, EventID Constants