HP Operations Manager for Windows

OV_CalculationRule::Remove()
OV_CalculationRule::Remove_Trans()


void Remove(
[in] string SettingId)
void Remove_Trans(
[in] string TransId,
[in] string SettingId)

Parameters

TransId
Transaction ID returned from OV_Transaction::Start().
SettingId
The SettingId property of an instance of OV_CalculationRule to be removed. If the calculation rule with the SettingId does not exist, the method fails with MDLAPI_E_CALCRULE_NOT_EXIST.

Calling Convention

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

Description

Removes the specified calculation rule (instance of OV_CalculationRule).

If the specified calculation rule is used by any another object or association, it is not removed, and the method fails with MDLAPI_E_CALCRULE_CANNOT_REMOVE

Return Value

None.

Extended Status Codes

MDLAPI_E_CALCRULE_CANNOT_REMOVE
Calculation rule cannot be removed because another object or association uses it.
MDLAPI_E_CALCRULE_NOT_EXIST
Calculation rule does not exist.
MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.