ExchangeType Property (Replication)
The ExchangeType property specifies whether the synchronization between the Publisher and the Subscriber is bidirectional or upload-only.
SQL Server CE Replication object
object.ExchangeType [= value]
|object||SQL Server CE Replication object|
|value||EXCHANGE_TYPE constant that specifies the direction in which data can be merged|
|BIDIRECTIONAL||3||Merge all changes between the Publisher and Subscriber (Default).|
|UPLOAD||1||Only merge Subscriber changes with the Publisher.|
HRESULT get_ExchangeType(EXCHANGE_TYPE *pVal); HRESULT put_ExchangeType(EXCHANGE_TYPE newVal);
BIDIRECTIONAL is used to first upload data to the Publisher. After the upload is complete, data is then downloaded to the Subscriber. Exchange_Type is forced to BIDIRECTIONAL during initial synchronization or when a ReinitializeSubscription is requested. Microsoft® SQL Server™ 2000 Windows® CE Edition (SQL Server CE) does not support the Exchange_Type value DOWNLOAD.