HP Operations Manager for Windows

OV_ServiceTypeDefinition::HasAction()
OV_ServiceTypeDefinition::HasAction_Trans()


boolean HasAction(
[in] string ActionName)
boolean HasAction_Trans(
[in] string TransId,
[in] string ActionName)

Parameters

TransId
Transaction ID returned from OV_Transaction::Start().
ActionName
The Name property of the tool (instance of OV_Action), which is used to verify that the tool is associated with this service type.

Calling Convention

These methods can be called only from a WMI instance object.

Description

Returns true if the specified tool (instance of OV_Action) is associated with this service type.

Return Value

False if the tool is already added to this service type.

Extended Status Codes

MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.