SqlCeReplication.ExchangeType Property

Specifies whether the synchronization between the Publisher and the Subscriber is bi-directional or upload only.

Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)

public ExchangeType ExchangeType { get; set; 
/** @property */
public ExchangeType get_ExchangeType ()

/** @property */
public void set_ExchangeType (ExchangeType value)

public function get ExchangeType () : ExchangeType

public function set ExchangeType (value : ExchangeType)

Property Value

The ExchangeType constant that specifies whether data merges up to the Publisher only, or in both directions between the Publisher and the Subscriber.

ExchangeType can be either of these constants:




Merges all changes between the Publisher and Subscriber (default).


Only merges the Subscriber changes with the Publisher.

BiDirectional is used first to upload data to the Publisher. After the upload is complete, data is then downloaded to the Subscriber. The ExchangeType property is forced to BiDirectional during initial synchronization or when a ReinitializeSubscription is requested.


SQL Server Mobile does not support the ExchangeType value Download.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions