DistributorAddress 属性

指定在 SQL Server 协调器连接到分发服务器时使用的网络地址。

命名空间:  System.Data.SqlServerCe
程序集:  System.Data.SqlServerCe(在 System.Data.SqlServerCe.dll 中)

语法

声明
Public Property DistributorAddress As String
    Get
    Set
用法
Dim instance As SqlCeReplication
Dim value As String

value = instance.DistributorAddress

instance.DistributorAddress = value
public string DistributorAddress { get; set; }
public:
property String^ DistributorAddress {
    String^ get ();
    void set (String^ value);
}
member DistributorAddress : string with get, set
function get DistributorAddress () : String
function set DistributorAddress (value : String)

属性值

类型:System. . :: . .String
连接到分发服务器时使用的网络地址。

注释

只有在 DistributorNetwork 设置为 DefaultNetwork 以外的值时,才需要 DistributorAddress。

指定此属性以指示 SQL Server 协调器如何与分发服务器通信。例如,如果 SQL Server Compact 3.5 服务器代理和分发服务器位于两个不同的系统中,并且这两个系统通过 Internet 进行通信,则可将 DistributorNetwork 设置为 TcpipSockets,将 DistributorAddress 设置为特定的 IP 地址。如果 DistributorNetwork 为使用 TCP/IP 的 TcpipSockets 或 MultiProtocol,则 DistributorNetwork 值的格式为“IP 地址,端口号”(例如,“111.11.11.11,1433”)。

如果没有指定任何分发服务器连接属性,则会认为发布服务器和分发服务器位于 SQL Server 的同一实例上,并且在连接到分发服务器时使用发布服务器连接属性。但是,如果设置了任一分发服务器连接属性,则必须设置所有必需的分发服务器属性。

请参阅

参考

SqlCeReplication类

SqlCeReplication 成员

System.Data.SqlServerCe 命名空间