FtpClientConnection.ServerPassword Property
Applies To: SQL Server 2016 Preview
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
public string ServerPassword { set; }
public:
property String^ ServerPassword {
void set(String^ value);
}
member ServerPassword : string with set
Public WriteOnly Property ServerPassword As String
Property Value
Type: System.String
Examples
Legacy Code Example
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
FtpClientConnection Class
Microsoft.SqlServer.Dts.Runtime Namespace
Return to top