OV_ServiceTypeDefinition::GetParents()
OV_ServiceTypeDefinition::GetParents_Trans()
- sint32 GetParents(
- [out] OV_ServiceTypeDefinition ServiceTypes[],
- [in, optional] boolean IncludeAllHierarchicalParents)
- sint32 GetParents_Trans(
- [in] string TransId,
- [out] OV_ServiceTypeDefinition ServiceTypes[],
- [in, optional] boolean IncludeAllHierarchicalParents)
Parameters
- TransId
- Transaction ID returned from OV_Transaction::Start().
- ServiceTypes
- Instances of OV_ServiceTypeDefinition that are the direct
parents of this service type. An instance is valid as a returned
out parameter only if the method does not fail.
- IncludeAllHierarchicalParents
- Defines whether ServiceTypes also includes instances of
OV_ServiceTypeDefinition that are hierarchical parents (recursive
until the root service type), 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 service types for which this service type is a
child.
Return Value
Number of service types (parents) in out parameter
ServiceTypes.
Extended Status Codes
- MDLAPI_E_TRANSACTION_NOT_EXIST
- Transaction with the specified ID does not exist.