UnregisterPersistentEvent Method
Unregisters the specified Command for the specified EventID for the specified DeviceID. UnregisterPersistentEvent should only be called for the Command, Name, Description, Icon, EventID, and DeviceID for which you called RegisterPersistentEvent.
Syntax
object.UnregisterPersistentEvent( _ Command As String, _ Name As String, _ Description As String, _ Icon As String, _ EventID As String, _ [DeviceID As String])
Parameters
Command
Required. String value.Name
Required. String value.Description
Required. String value.Icon
Required. String value.EventID
Required. String value.DeviceID
Optional. String value.
*
Default.
Remarks
For example code, see Implement a Windows Script Host Script that Runs Automatically in Shared Samples.
The UnregisterPersistentEvent method requires Administrator permission to function successfully.
Method Information
Minimum operating systems Windows XP SP1
See Also
DeviceID (Device), Description (DeviceCommand), Name (DeviceCommand), Description (DeviceEvent), EventID, Name (DeviceEvent), DeviceID (DeviceInfo), DeviceManager, OnEvent, RegisterEvent, RegisterPersistentEvent, UnregisterEvent, EventID Constants, Description (Filter), Name (Filter), Description (FilterInfo), Name (FilterInfo), Add (Items), Name (Property)