OV_Service::AddAction()
OV_Service::AddAction_Trans()
- boolean AddAction(
- [in] string ActionName)
- boolean AddAction_Trans(
- [in] string TransId,
- [in] string ActionName)
Parameters
- TransId
- Transaction ID returned from OV_Transaction::Start().
- ActionName
- The Name property of the instance of OV_Action to be added to
this service. If tool does not exist, the method fails with
MDLAPI_E_TOOL_NOT_EXIST.
Calling Convention
These methods can be called only from a WMI instance object.
Description
Adds the tool (instance of OV_Action) to this service.
Return Value
False if the tool is already added to this service.
Extended Status Codes
- MDLAPI_E_TOOL_NOT_EXIST
- Tool does not exist.
- MDLAPI_E_TRANSACTION_NOT_EXIST
- Transaction with the specified ID does not exist.