Linguaggio

FtpClientConnection.ServerPassword Proprietà

Definizione

Imposta la password del server specificato nella ServerName proprietà. Questa proprietà è solo 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à

La password del server specificata nella ServerName proprietà.

Esempio

Il seguente esempio di codice mostra 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