Terminate Method (Replication)
Applications call the Terminate method to complete the merge replication process and close the connection to the SQL Server 2005 Compact Edition (SQL Server Compact Edition) database.
Syntax
object.Terminate()
Applies To
SQL Server Compact Edition Replication object
Prototype
HRESULT Terminate();
Returns
Return code | Description |
---|---|
S_OK |
Method succeeded. |
Any FAILED(HRESULT) |
See the SSCEErrors collection for detailed error information. |
Remarks
The Terminate method closes the connection to the SQL Server Compact Edition database.
The application must call the Terminate method after calling the Run method. Specifically, the application must call the Initialize, Run, and Terminate methods in succession.