言語

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")  

適用対象