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
Get
Set
'Usage
Dim instance As SqlCeReplication
Dim value As ExchangeType
value = instance.ExchangeType
instance.ExchangeType = value
public ExchangeType ExchangeType { get; set; }
public:
property ExchangeType ExchangeType {
ExchangeType get ();
void set (ExchangeType value);
}
member ExchangeType : ExchangeType with get, set
function get ExchangeType () : ExchangeType
function set ExchangeType (value : ExchangeType)
Property Value
Type: System.Data.SqlServerCe. . :: . .ExchangeType
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
does not support the ExchangeType value Download.