OV_ServiceTypeDefinition::GetByHierarchicalPath()
OV_ServiceTypeDefinition::GetByHierarchicalPath_Trans()
- OV_ServiceTypeDefinition GetByHierarchicalPath(
- [in] string Path)
- OV_ServiceTypeDefinition GetByHierarchicalPath_Trans(
- [in] string TransId,
- [in] string Path)
Parameters
- TransId
- Transaction ID returned from OV_Transaction::Start().
- Path
- The service type specified by the hierarchy Path. The Path
consists of the Caption/Display Names of the parent Service types
and a single backslash as a separator. The Path starts with a
single backslash. If some of the Captions contain backslashes, you
should escape them with additional backslashes (for example, "\\").
If the service type with the Path does not exist, nothing happens,
and the method fails with MDLAPI_E_SERVICETYPE_NOT_EXIST.
Calling Convention
These methods can be called from a WMI class or instance
object.
Description
Returns the service type (instance of OV_ServiceTypeDefinition)
specified by the hierarchical path.
Return Value
Instance of OV_ServiceTypeDefinition specified by the
hierarchical path.
Extended Status Codes
- MDLAPI_E_SERVICETYPE_NOT_EXIST
- Service type does not exist.
- MDLAPI_E_TRANSACTION_NOT_EXIST
- Transaction with the specified ID does not exist.