Applications call the ReinitializeSubscription method to mark a subscription for reinitialization. After calling the ReinitializeSubscription method, the application must call the Initialize, Run, and Terminate methods to download the latest snapshot of the publication to the Microsoft® Windows® CE-based device.
SQL Server CE Replication object
|object||SQL Server CE Replication object|
|bUploadBeforeReInit||If True, the changes in the subscription database are uploaded to the Publisher before the snapshot is applied at the Subscriber. The default is False.|
HRESULT ReinitializeSubscription(VARIANT_BOOL bUploadBeforeReInit);
|Any FAILED(HRESULT)||Check the SSCEErrors collection for detailed error information.|
A flag is marked in the subscription system table in Microsoft SQL Server™ 2000 Windows CE Edition (SQL Server CE) to signify that during the next synchronization, the subscription should be reinitialized. After calling the ReinitializeSubscription method, the application must call the Initialize, Run, and Terminate methods to delete the existing replica and download a new replica of the publication to the Windows CE-based device.