MergeSynchronizationAgent.SubscriberPassword 屬性

定義

設定當使用 SQL Server Authentication 連接到訂閱者時,所使用的密碼。

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

屬性值

String

連接到訂閱者時所用的密碼。

實作

備註

可能的話,建議使用者在執行時間輸入安全性認證。 如果您必須儲存認證,請使用所提供的 密碼編譯服務 Microsoft .NET Framework 。

如果是提取訂閱,合併代理程式一律會使用 Windows 整合式驗證連接到本機訂閱者,而且會忽略這個屬性。

永遠不會傳回用來連接到「訂閱者」的儲存密碼。 存取這個屬性將會產生 PasswordWriteOnlyException 例外狀況。

只有當設定為時,才會使用這個屬性 SubscriberSecurityMode Standard

適用於