WPDObject.onRemoveChildComplete event
The onRemoveChildComplete event occurs, and a callback handler is invoked, when a RemoveChild operation has completed.
Syntax
WPDObject.onRemoveChildComplete(
hrStatus,
childPUID
)
Parameters
-
hrStatus
-
Contains the overall status of the remove operation (success or failure).
-
childPUID
-
The Persistent Unique ID (PUID) of the child WPDObject that was removed.
Return value
This event does not return a value.
Remarks
To enable asynchronous behavior, set the handler for this event before calling the RemoveChild method.
Examples
The following code shows the handler-function syntax for the onRemoveChildComplete event.
function HandlerFunction(hrStatus, childPUID)
{
// Code to handle a completed asynchronous RemoveChild operation.
}
// Set the event handler.
WPDObject.onRemoveChildComplete = HandlerFunction;
Requirements
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |