HP Operations Manager for Windows

OV_Service::HasAction()
OV_Service::HasAction_Trans()


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

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.
IncludeDefault
Defines whether the tool to find can also be included from the service type (default tools). Optional parameter. Default value is false.

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.

Return Value

False if the tool is already added to this service.

Extended Status Codes

MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.