指定订阅服务器和发布服务器之间的同步是双向的,还是仅限于上载。
命名空间: System.Data.SqlServerCe
程序集: System.Data.SqlServerCe(在 System.Data.SqlServerCe.dll 中)
语法
声明
Public Property ExchangeType As ExchangeType
Get
Set
用法
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)
属性值
类型:System.Data.SqlServerCe. . :: . .ExchangeType
ExchangeType 常量,它指定是只将数据合并到发布服务器,还是在发布服务器和订阅服务器之间进行双向合并。
注释
ExchangeType 可以是以下任一常量:
常量 |
说明 |
---|---|
BiDirectional |
合并发布服务器和订阅服务器之间的所有更改(默认值)。 |
Upload |
只将订阅服务器的更改合并到发布服务器。 |
首先使用 BiDirectional 将数据上载到发布服务器。上载完毕后,再将数据下载到订阅服务器。在初始同步期间或在请求 ReinitializeSubscription 时,强制 ExchangeType 属性采用 BiDirectional。
备注
SQL Server Compact 3.5 不支持 ExchangeType 值 Download。