HP Operations Manager for Windows

OV_Service::GetByName()
OV_Service::GetByName_Trans()


OV_Service GetByName(
[in] string Name)
OV_Service GetByName_Trans(
[in] string TransId,
[in] string Name)

Parameters

TransId
Transaction ID returned from OV_Transaction::Start().
Name
The Name property of the instance of OV_Service to be returned. If the service with the specified Name does not exist, nothing happens, and the method fails with MDLAPI_E_SERVICE_NOT_EXIST.

Calling Convention

These methods can be called from a WMI class or instance object.

Description

Returns the service (instance of OV_Service) specified with the Name property.

Return Value

Instance of OV_Service specified with the Name property.

Extended Status Codes

MDLAPI_E_SERVICE_NOT_EXIST
Service does not exist.
MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.