DropSubscription Method (Replication)

The DropSubscription method drops the subscription having the specified control properties.

Applies To
SQLDistribution Object SQLMerge Object

Syntax

object.DropSubscription(DBDROPOPTION)

Part Description
object Expression that evaluates to an object in the Applies To list
DBDROPOPTION Option to drop

Returns
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.

Remarks

Push subscriptions are not currently supported by the method.

Prototype C/C++

HRESULT DropSubscription(
DBDROPOPTION DBDropOption);

See Also

AddSubscription Method

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.