Share via


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)

Syntax

'Declaration
Public WriteOnly Property ServerPassword As String 
    Set
'Usage
Dim instance As FtpClientConnection 
Dim value As String

instance.ServerPassword = value
public string ServerPassword { set; }
public:
property String^ ServerPassword {
    void set (String^ value);
}
member ServerPassword : string with get, set
function set ServerPassword (value : String)

Property Value

Type: System.String

Examples

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

See Also

Reference

FtpClientConnection Class

Microsoft.SqlServer.Dts.Runtime Namespace