FtpClientConnection.ServerPassword 屬性

定義

設定屬性中 ServerName 指定的伺服器密碼。 此屬性僅可寫入。

public:
 property System::String ^ ServerPassword {  void set(System::String ^ value); };
public string ServerPassword { set; }
member this.ServerPassword : string
Public Property ServerPassword As String

屬性值

該屬性中 ServerName 指定的伺服器密碼。

範例

以下程式碼範例說明如何設定密碼。

Package pkg = new Package();  
FtpClientConnection ftp = null;  
Connections conns = pkg.Connections;  
ConnectionManager cm = conns.Add("FTP");  
cm.Properties["ServerPassword"].SetValue(cm, "thepassword");  
Dim pkg As Package =  New Package()   
Dim ftp As FtpClientConnection =  Nothing   
Dim conns As Connections =  pkg.Connections   
Dim cm As ConnectionManager =  conns.Add("FTP")   
cm.Properties("ServerPassword").SetValue(cm, "thepassword")  

適用於