DistributorAddress-Eigenschaft

Ruft die Netzwerkadresse ab, die verwendet wird, um eine Verbindung mit dem Verteiler herzustellen, wenn die DistributorNetwork-Eigenschaft angegeben ist, oder legt diese fest.

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Replication (in Microsoft.SqlServer.Replication.dll)

Syntax

'Declaration
Public Overridable Property DistributorAddress As String
    Get
    Set
'Usage
Dim instance As MergeSynchronizationAgent
Dim value As String

value = instance.DistributorAddress

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

Eigenschaftswert

Typ: System. . :: . .String
Ein String-Wert, der die Verteileradresse darstellt.

Implementiert

IMergeSynchronizationAgent. . :: . .DistributorAddress

Hinweise

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 Merge Agent 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()()()() is using TCP/IP, the value is in the form of 'IP address,socket' (such as '111.11.11.11,1433').

If the Distributor connection properties are not specified, t is assumed that the Publisher and Distributor are the same instance of SQL Server and the Publisher connection properties will be used when connecting to the Distributor.