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)

Syntax

'Declaration
Public Property ExchangeType As ExchangeType
public ExchangeType ExchangeType { get; set; }
public:
property ExchangeType ExchangeType {
    ExchangeType get ();
    void set (ExchangeType value);
}
/** @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.

Remarks

ExchangeType can be either of these constants:

Constant

Description

BiDirectional

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

Upload

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.

Note

SQL Server Compact 3.5 SP1 does not support the ExchangeType value Download.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows Vista, Windows Mobile 5.0, Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Mobile 2003 for Pocket PC, Windows CE 5.0
Version Information
.NET Framework and NET Compact Framework
Supported in 3.5
.NET Framework
Supported in 3.0
.NET Compact Framework and .Net Framework
Supported in 2.0

See Also

Reference

SqlCeReplication Class
SqlCeReplication Members
System.Data.SqlServerCe Namespace