HP Operations Manager for Windows

OV_Service::HasAntecedentService()
OV_Service::HasAntecedentService_Trans()


boolean HasAntecedentService(
[in] string AntecedentName,
[in, optional] boolean IncludeAllAntecedent)
boolean HasAntecedentService_Trans(
[in] string TransId,
[in] string AntecedentName,
[in, optional] boolean IncludeAllAntecedent)

Parameters

TransId
Transaction ID returned from OV_Transaction::Start().
AntecedentName
The Name property of the antecedent service (instance of OV_Service) on which this service depends.
IncludeAllAntecedent
This flag indicates which antecedent services to include. Optional parameter. Default value is false (only immediately antecedent services are included).

Calling Convention

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

Description

Returns true if this service is dependent on the specified service (instance of OV_Service).

Return Value

True if the service (instance of OV_Service) specified by a parameter ServiceName is the antecedent service on which this service depends.

Extended Status Codes

MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.