Свойство FtpClientConnection.ServerPassword
Sets the password for the server specified in the ServerName property. This property is write-only.
Пространство имен: Microsoft.SqlServer.Dts.Runtime
Сборка: Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)
Синтаксис
'Декларация
Public WriteOnly Property ServerPassword As String
Set
'Применение
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)
Значение свойства
Тип: System.String
Примеры
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")