The DropSubscription method drops the subscription having the specified control properties.
SQLDistribution Object | SQLMerge Object |
object.DropSubscription(DBDROPOPTION)
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
DBDROPOPTION | Option to drop |
Return code | Description |
---|---|
S_OK | Method succeeded. |
E_FAIL | General failure occurred. Check error records for detailed information. |
REPLX_E_SUBNOTFOUND | Specified subscription does not exist. |
REPLX_E_RETRYFAILURE | Failure occurred that may require retrying the last operation. |
Push subscriptions are not currently supported by the method.
HRESULT DropSubscription(
DBDROPOPTION DBDropOption);