FtpClientConnection.ServerPassword Property

 

Sets the password for the server specified in the ServerName property. This property is write-only.

Namespace:   Microsoft.SqlServer.Dts.Runtime
Assembly:  Microsoft.SqlServer.ManagedDTS (in Microsoft.SqlServer.ManagedDTS.dll)

public string ServerPassword { set; }

Property Value

Type: System.String

The password for the server specified in the ServerName property.

The following code example shows how to set the password.

Package pkg = new Package();
FtpClientConnection ftp = null;
Connections conns = pkg.Connections;
ConnectionManager cm = conns.Add("FTP");
cm.Properties["ServerPassword"].SetValue(cm, "thepassword");
Return to top
Show: