Bagikan melalui


FtpClientConnection.ServerPassword Properti

Definisi

Menyetel kata sandi untuk server yang ditentukan dalam ServerName properti . Properti ini hanya untuk menulis.

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

Nilai Properti

Kata sandi untuk server yang ditentukan dalam ServerName properti .

Contoh

Contoh kode berikut menunjukkan cara mengatur kata sandi.

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

Berlaku untuk