語言

MergeSynchronizationAgent.DistributorAddress 屬性

定義

當指定屬性時 DistributorNetwork ,取得或設定用於連接分配器的網路位址。

public:
 virtual property System::String ^ DistributorAddress { System::String ^ get(); void set(System::String ^ value); };
public virtual string DistributorAddress { get; set; }
member this.DistributorAddress : string with get, set
Public Overridable Property DistributorAddress As String

屬性值

一個 String 代表分銷商地址的值。

實作

備註

此性質僅 DistributorNetwork 在設定為非 DefaultNetwork的值時才需要。

此特性在設定 合併代理程式 以連接分發器而無需使用 SQL Server 組態管理員 時非常有用。

例如,如果分發器是透過網際網路存取, DistributorNetwork 可以設定為 TcpIPSocketsDistributorAddress 設定為特定的 IP 位址。

若屬性 DistributorNetworkTcpIPSocketsMultiprotocol 正在使用 TCP/IP,則該值以「IP 位址、套接字」的形式呈現(例如 '111.11.11.11,1433')。

若未指定 Distributor 連線屬性,則假設 Publisher 與 Distributor 是同一 SQL Server 實例,連接 Distributor 時會使用 Publisher 連線屬性。

適用於