FtpClientConnection.ServerPassword Proprietà

Definizione

Imposta la password per il server specificato nella proprietà ServerName. Questa proprietà è di sola scrittura.

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

Valore della proprietà

Password per il server specificato nella proprietà ServerName.

Esempio

Nell'esempio di codice seguente viene illustrato come impostare la password.

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

Si applica a