共用方式為


TransSynchronizationAgent.DistributorAddress Property

Gets or sets the network address that is used to connect to the Distributor when the DistributorNetwork property is specified.

命名空間: Microsoft.SqlServer.Replication
組件: Microsoft.SqlServer.Replication (in microsoft.sqlserver.replication.dll)

語法

'宣告
Public Overridable Property DistributorAddress As String
public virtual string DistributorAddress { get; set; }
public:
virtual property String^ DistributorAddress {
    String^ get ();
    void set (String^ newValue);
}
/** @property */
public String get_DistributorAddress ()

/** @property */
public void set_DistributorAddress (String newValue)
public function get DistributorAddress () : String

public function set DistributorAddress (newValue : String)

屬性值

A String value representing the Distributor address.

備註

This property is required only when the DistributorNetwork property is set to a value other than DefaultNetwork.

This property is useful when you are configuring the control to connect to the Distributor without having to use SQL Server Configuration Manager.

For example, if the Distributor is accessed over the Internet, DistributorNetwork can be set to TcpIpSockets and DistributorAddress can be set to a specific IP address.

If the DistributorNetwork property is TcpIpSockets or MultiProtocol by using TCP/IP, the value is in the form of 'IP address,socket' (such as '111.11.11.11,1433').

執行緒安全性

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

TransSynchronizationAgent Class
TransSynchronizationAgent Members
Microsoft.SqlServer.Replication Namespace