RegisterEvent Method
Registers the specified EventID Constants for the specified DeviceID. If DeviceID is "*" then OnEvent is called whenever the event specified occurs for any device. Otherwise, OnEvent is only called if the event specified occurs on the device specified.
Syntax
object.RegisterEvent( _ EventID As String, _ [DeviceID As String])
Parameters
EventID
Required. String value.DeviceID
Optional. String value.
*
Default.
Remarks
For example code, see Download New Items as They are Created in Shared Samples.
Method Information
Minimum operating systems Windows XP SP1
See Also
DeviceID (Device), EventID, DeviceID (DeviceInfo), DeviceManager, OnEvent, RegisterPersistentEvent, UnregisterEvent, UnregisterPersistentEvent, EventID Constants