Service.onObjectRemoved event
The onObjectRemoved event occurs after an object has been removed from this Service object.
Syntax
Service.onObjectRemoved(
removedObjectPUID,
parentWpdObject
)
Parameters
-
removedObjectPUID
-
The Persistent Unique ID (PUID) of the object that was removed.
-
parentWpdObject
-
The parent WPDObject of the object that was removed.
Return value
This event does not return a value.
Examples
The following code shows the handler-function syntax for the onObjectRemoved event.
function HandlerFunction(removedObjectPUID, parentWpdObject)
{
// Code to handle the removed object.
}
// Set the event handler.
Service.onObjectRemoved = HandlerFunction;
Requirements
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |