C# Class GSF.Net.Ftp.FtpClient

Inheritance: System.ComponentModel.Component
Afficher le fichier Open project: GridProtectionAlliance/gsf Class Usage Examples

Private Properties

Свойство Type Description
OnBeginFileTransfer void
OnCommandSent void
OnEndFileTransfer void
OnFileTransferNotification void
OnFileTransferProgress void
OnResponseReceived void

Méthodes publiques

Méthode Description
AbortTransfer ( ) : void

Aborts current file transfer.

Close ( ) : void

Closes current FTP session.

Connect ( string userName, string password ) : void

Connects to FTP server using specified credentials.

FtpClient ( ) : System

Constructs a new FTP session using the default settings.

FtpClient ( IContainer container ) : System

Initializes a new instance of the FtpClient class.

FtpClient ( bool caseInsensitive ) : System

Constructs a new FTP session using the specified settings.

SetCurrentDirectory ( string directoryPath ) : void

Changes the current FTP session directory to the specified path.

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the FtpClient object and optionally releases the managed resources.

Private Methods

Méthode Description
OnBeginFileTransfer ( string localFileName, string remoteFileName, TransferDirection transferDirection ) : void
OnCommandSent ( string command ) : void
OnEndFileTransfer ( string localFileName, string remoteFileName, TransferDirection transferDirection ) : void
OnFileTransferNotification ( GSF.Net.Ftp.FtpAsyncResult transferResult ) : void
OnFileTransferProgress ( ProcessProgress fileTransferProgress, TransferDirection transferDirection ) : void
OnResponseReceived ( string response ) : void

Method Details

AbortTransfer() public méthode

Aborts current file transfer.
public AbortTransfer ( ) : void
Résultat void

Close() public méthode

Closes current FTP session.
public Close ( ) : void
Résultat void

Connect() public méthode

Connects to FTP server using specified credentials.
public Connect ( string userName, string password ) : void
userName string User name used to authenticate to FTP server.
password string Password used to authenticate to FTP server.
Résultat void

Dispose() protected méthode

Releases the unmanaged resources used by the FtpClient object and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Résultat void

FtpClient() public méthode

Constructs a new FTP session using the default settings.
public FtpClient ( ) : System
Résultat System

FtpClient() public méthode

Initializes a new instance of the FtpClient class.
public FtpClient ( IContainer container ) : System
container IContainer object that contains the .
Résultat System

FtpClient() public méthode

Constructs a new FTP session using the specified settings.
public FtpClient ( bool caseInsensitive ) : System
caseInsensitive bool Set to true to not be case sensitive with FTP file and directory names.
Résultat System

SetCurrentDirectory() public méthode

Changes the current FTP session directory to the specified path.
public SetCurrentDirectory ( string directoryPath ) : void
directoryPath string New directory.
Résultat void