OV_PropagationRule::Remove()
OV_PropagationRule::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_PropagationRule to
be removed. If the propagation rule with the SettingId does not
exist, the method fails with MDLAPI_E_PROPRULE_NOT_EXIST.
Calling Convention
These methods can be called from a WMI class or instance
object.
Description
Removes the specified propagation rule (instance of
OV_PropagationRule).
If the specified propagation rule is used by any other object or
association, it is not removed, and the method fails with
MDLAPI_E_PROPRULE_CANNOT_REMOVE
Return Value
None.
Extended Status Codes
- MDLAPI_E_PROPRULE_CANNOT_REMOVE
- Propagation rule cannot be removed because another object or
association uses it.
- MDLAPI_E_PROPRULE_NOT_EXIST
- Message propagation rule does not exist.
- MDLAPI_E_TRANSACTION_NOT_EXIST
- Transaction with the specified ID does not exist.