C# Класс SSIS.Extensions.SFTP.SFTPConnection

This class is the SFTP interface to ssh net library.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CreateFileInfo RemoteFileInfo
Log void
ThrowException void

Открытые методы

Метод Описание
DownloadFiles ( List fileList ) : void

Downloads the files.

ListFiles ( string remotePath ) : List

Lists the files.

SFTPConnection ( string hostName, string userName, string passWord, int portNumber, bool stopOnFailure, IDTSComponentEvents componentEvents, LogLevel logLevel ) : Microsoft.SqlServer.Dts.Runtime

Initializes a new instance of the SFTPConnection class.

UploadFiles ( List fileList ) : void

Uploads the files.

Приватные методы

Метод Описание
CreateFileInfo ( SftpFile sftpFile ) : RemoteFileInfo
Log ( string Message, LogLevel minLogLevel ) : void

Logs the specified message.

ThrowException ( string Message, Exception ex ) : void

Throws the exception.

Описание методов

DownloadFiles() публичный Метод

Downloads the files.
/// Local File Already Exists. ///
public DownloadFiles ( List fileList ) : void
fileList List The file list.
Результат void

ListFiles() публичный Метод

Lists the files.
public ListFiles ( string remotePath ) : List
remotePath string The remote path.
Результат List

SFTPConnection() публичный Метод

Initializes a new instance of the SFTPConnection class.
public SFTPConnection ( string hostName, string userName, string passWord, int portNumber, bool stopOnFailure, IDTSComponentEvents componentEvents, LogLevel logLevel ) : Microsoft.SqlServer.Dts.Runtime
hostName string Name of the host.
userName string Name of the user.
passWord string The pass word.
portNumber int The port number.
stopOnFailure bool
componentEvents IDTSComponentEvents The component events.
logLevel LogLevel The log level.
Результат Microsoft.SqlServer.Dts.Runtime

UploadFiles() публичный Метод

Uploads the files.
Remote File Already Exists.
public UploadFiles ( List fileList ) : void
fileList List The file list.
Результат void