OV_Service::GetParents()
OV_Service::GetParents_Trans()
- sint32 GetParents(
- [out] OV_Service Services[],
- [in, optional] boolean IncludeAllHierarchicalParents)
- sint32 GetParents_Trans(
- [in] string TransId,
- [out] OV_Service Services[],
- [in, optional] boolean IncludeAllHierarchicalParents)
Parameters
- TransId
- Transaction ID returned from OV_Transaction::Start().
- Services
- Instances of OV_Service that are the parents of this service.
An instance is valid as a returned out parameter only if the method
does not fail.
- IncludeAllHierarchicalParents
- Defines whether Services also include instances of OV_Service
that are hierarchical parents (recursive until the root service),
rather than direct parents. Optional parameter. Default value is
false.
Calling Convention
These methods can be called only from a WMI instance object.
Description
Returns a list of services for which this service is a
child.
Return Value
Number of services (parents) in out parameter Services.
Extended Status Codes
- MDLAPI_E_TRANSACTION_NOT_EXIST
- Transaction with the specified ID does not exist.