共用方式為


Distributor 屬性

指定 SQL Server「散發者」。

命名空間:  System.Data.SqlServerCe
組件:  System.Data.SqlServerCe (在 System.Data.SqlServerCe.dll 中)

語法

'宣告
Public Property Distributor As String
    Get
    Set
'用途
Dim instance As SqlCeReplication
Dim value As String

value = instance.Distributor

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

屬性值

型別:System. . :: . .String
發行者使用的散發者名稱。

備註

「散發者」是儲存快照集以及記錄複寫記錄和統計資料的 SQL Server 電腦。

如果有指定DistributorNetworkDistributorAddress 屬性,則在連接到「散發者」時會使用這些屬性,而不是 Distributor 屬性。

Distributor 屬性是選擇性的。如果未指定任何「散發者」連接屬性,則會假設「發行者」和「散發者」位於同一個 SQL Server 執行個體上,且會在連接至「散發者」時使用「發行者」連接屬性。然而,如果設定了任何「散發者」連接屬性,就必須設定所有必要的「散發者」屬性。

請參閱

參考

SqlCeReplication類別

SqlCeReplication 成員

System.Data.SqlServerCe 命名空間