HP Operations Manager for Windows

OV_Service::HasChildService()
OV_Service::HasChildService_Trans()


boolean HasChildService(
[in] string ServiceName,
[in, optional] boolean IncludeAllSubordinate)
boolean HasChildService_Trans(
[in] string TransId,
[in] string ServiceName,
[in, optional] boolean IncludeAllSubordinate)

Parameters

TransId
Transaction ID returned from OV_Transaction::Start().
ServiceName
The Name property of the service (instance of OV_Service) used to verify that the service is a child of this service.
IncludeAllSubordinate
This flag indicates how to search the specified child service. Optional parameter. Default value is false (only immediately subordinate services are searched).

Calling Convention

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

Description

Returns true if the specified service (instance of OV_Service) is a child of this service. Only immediately subordinate services are checked.

Return Value

True if the service (instance of OV_Service) specified by the ServiceName parameter is a child of this service.

Extended Status Codes

MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.