FtpClientConnection.ServerPassword Proprietà
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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")