HP Operations Manager for Windows

OV_CalculationRule::GetByCaption()
OV_CalculationRule::GetByCaption_Trans()


OV_CalculationRule GetByCaption(
[in] string Caption)
OV_CalculationRule GetByCaption_Trans(
[in] string TransId,
[in] string Caption)

Parameters

TransId
Transaction ID returned from OV_Transaction::Start().
Caption
The Caption property of an instance of OV_CalculationRule to be returned.

Calling Convention

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

Description

Returns the calculation rule (instance of OV_CalculationRule) specified by the Caption property.

Return Value

Instance of OV_CalculationRule specified by a Caption property.

Extended Status Codes

MDLAPI_E_CALCRULE_NOT_EXIST
Calculation rule does not exist.
MDLAPI_E_CALCRULE_CAPTION_NOT_UNIQUE
More than one calculation rule with the specified Caption is found.
MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.