MergeSynchronizationAgent.DistributorPassword 屬性

定義

設定使用 SQL Server 認證連接分發器時使用的密碼。

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

屬性值

密碼。

實作

備註

在可能的情況下,我們建議使用者在執行時輸入安全憑證。 如果你必須儲存憑證,請使用 Microsoft .NET Framework 提供的密碼學服務

對於推送訂閱,合併代理程式 總是透過 Windows 整合驗證在本地連接分發者,而此特性會被忽略。

用於連接分銷商的儲存密碼永遠不會被歸還。 存取此屬性會產生 PasswordWriteOnlyException 例外。

此性質僅在 DistributorSecurityMode 設定為 Standard時使用。

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

適用於