HP Operations Manager for Windows

OV_ServiceTypeDefinition::SetCalculationRule()
OV_ServiceTypeDefinition::SetCalculationRule_Trans()


void SetCalculationRule(
[in] string CalcRuleId)
void SetCalculationRule_Trans(
[in] string TransId,
[in] string CalcRuleId)

Parameters

TransId
Transaction ID returned from OV_Transaction::Start().
CalcRuleId
New CalcRuleId property value of this service type.

Calling Convention

These methods can be called only from a WMI instance object.

Description

Sets the calculation rule (instance of OV_CalculationRule) to this service type.

Return Value

None.

Extended Status Codes

MDLAPI_E_CALCRULE_NOT_EXIST
Calculation rule does not exist.
MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.