다음을 통해 공유


Terminate Method (Replication ActiveX)

The Terminate method terminates the replication process and closes all database connections.

구문

object.Terminate 
Part Description

object

Expression that evaluates to an object in the Applies To list.

Applies To

SQLDistribution Object (Replication ActiveX)

SQLMerge Object (Replication ActiveX)

반환 값

Return code Description

S_OK

Method succeeded.

E_FAIL

General failure occurred. Check error records for detailed information.

REPLX_E_RETRYFAILURE

Failure occurred that might require retrying the last operation.

주의

You must call Terminate after calling Initialize Method (Replication ActiveX) and Run Method (Replication ActiveX).

After using Terminate, the control host must call Initialize Method (Replication ActiveX) before again calling Run Method (Replication ActiveX).

In Microsoft Visual Basic, Terminate is a Sub method and does not return a value.

Prototype (C/C++)

HRESULT Terminate( );

참고 항목

개념

Programming Replication Using ActiveX Controls

도움말 및 정보

SQL Server 2005 지원 받기