SqlCeReplication.ExchangeType Property
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.
Specifies whether the synchronization between the Publisher and the Subscriber is bi-directional or upload only.
[Visual Basic] Public Property ExchangeType As ExchangeType [C#] public ExchangeType ExchangeType {get; set;} [C++] public: __property ExchangeType get_ExchangeType(); public: __property void set_ExchangeType(ExchangeType); [JScript] public function get ExchangeType() : ExchangeType; public function set ExchangeType(ExchangeType);
Property Value
The ExchangeType constant that specifies whether data merges up to the Publisher or in both directions between the Publisher and the Subscriber.
Remarks
ExchangeType can be any one of these constants:
Constant | Description |
---|---|
BiDirectional | Merges all changes between the Publisher and Subscriber (default). |
Upload | Only merge 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 CE does not support the ExchangeType value Download.
Requirements
Platforms: .NET Compact Framework
.NET Framework Security:
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries From Partially Trusted Code
See Also
SqlCeReplication Class | SqlCeReplication Members | System.Data.SqlServerCe Namespace
Syntax based on .NET Framework version 1.1.
Documentation version 1.1.1.