Initialize Method (Replication)

Applications call the Initialize method to prepare for synchronization. The Initialize method opens the connection to the SQL Server Compact 3.5 (SQL Server Compact 3.5) database.

Syntax

object.Initialize()

Applies To

SQL Server Compact 3.5 Replication object

Prototype

HRESULT Initialize();

Returns

Return code Description

S_OK

Method succeeded.

Any FAILED(HRESULT)

See the SSCEErrors collection for detailed error information.

Remarks

The application must call the Initialize method before calling the Run method. Specifically, the application must call the Initialize, Run, and Terminate methods in succession.

See Also

Other Resources

Replication Object Methods

Help and Information

Getting Assistance (SQL Server Compact 3.5 Service Pack 1)