Publication.SecureFtpPassword 屬性

定義

為登入帳號設定密碼(作為 SecureString 物件),用於連接允許透過 FTP 初始化訂閱的發佈檔案傳輸協定(FTP)伺服器。

public:
 property System::Security::SecureString ^ SecureFtpPassword { System::Security::SecureString ^ get(); void set(System::Security::SecureString ^ value); };
public System.Security.SecureString SecureFtpPassword { get; set; }
member this.SecureFtpPassword : System.Security.SecureString with get, set
Public Property SecureFtpPassword As SecureString

屬性值

一個 SecureString 值。

備註

SecureFtpPassword 屬性在密碼儲存在記憶體中時提供額外的安全性,應取代 FtpPassword

在執行時,請提示使用者輸入安全憑證。 如果你必須儲存憑證,請使用 Windows .NET 框架提供的加密服務

密碼從未被回傳。SecureFtpPassword

SecureFtpPassword該屬性只能由 Publisher 固定伺服器角色的成員sysadmin或發佈資料庫中固定資料庫角色的成員db_owner設定。 出版存取清單(PAL)中的使用者可以設定 SecureFtpPassword 現有出版品的屬性。

設定屬性 SecureFtpPassword 等同於執行 sp_addpublication(Transact-SQL)sp_changepublication(Transact-SQL)sp_addmergepublication(Transact-SQL)sp_changemergepublication(Transact-SQL)

適用於