Click or drag to resize

FtpClient Class

Represents an virtual FTP session for the specified target FtpType.
Inheritance Hierarchy
SystemObject
  GSF.Net.VirtualFtpClientFtpClient

Namespace: GSF.Net.VirtualFtpClient
Assembly: GSF.Net (in GSF.Net.dll) Version: 2.4.207-beta
Syntax
public class FtpClient : IDisposable
View Source

The FtpClient type exposes the following members.

Constructors
 NameDescription
Public methodFtpClient Creates a new FtpClient.
Top
Properties
 NameDescription
Public propertyActiveAddress Gets or sets the IP address to send with the PORT command.
Public propertyCaseSensitive Gets or sets FTP case sensitivity of file and directory names.
Public propertyCurrentDirectory Gets or sets current FTP session directory.
Public propertyFtpType Gets FtpType for this FtpClient.
Public propertyIsConnected Returns true if FTP session is currently connected.
Public propertyMaxActivePort Gets or sets the maximum value in the range of ports used when listening for connections in active mode.
Public propertyMinActivePort Gets or sets the minimum value in the range of ports used when listening for connections in active mode.
Public propertyPassive Gets or sets the passive/active mode of the server.
Public propertyPort Gets or sets FTP server port to use, defaults to 21 for FTP and 69 for TFTP.
Public propertyRootDirectory Gets FTP session root directory entry.
Public propertyServer Gets or sets FTP server name (DNS name or IP).
Public propertyTFtpDirectoryFile Gets or sets the directory file, e.g., DIR.TXT, associated with TFTP connections.
Public propertyTimeout Gets or sets the timeout, in milliseconds, for read and write operations, defaults to 30 seconds.
Top
Methods
 NameDescription
Public methodConnect Connects to FTP server using specified credentials.
Public methodDispose Releases all the resources used by the FtpClient object.
Protected methodDispose(Boolean) Releases the unmanaged resources used by the FtpClient object and optionally releases the managed resources.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodSetCurrentDirectory Changes the current FTP session directory to the specified path.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Events
 NameDescription
Public eventBeginFileTransfer Raised when file transfer begins.
Public eventCommandSent Raised when FTP command has been sent.
Public eventDisposed Raised when class is disposed;
Public eventEndFileTransfer Raised when file transfer completes.
Public eventFileTransferNotification Raised when file transfer process has completed (success or failure).
Public eventFileTransferProgress Raised as file transfer is progressing.
Public eventResponseReceived Raised when FTP response has been received.
Top
Fields
 NameDescription
Public fieldStatic memberDefaultCaseSensitive Defines the default value for the CaseSensitive property.
Public fieldStatic memberDefaultPassive Defines the default value for the Passive property.
Public fieldStatic memberDefaultTFtpDirectoryFile Defines the default value for the TFtpDirectoryFile property.
Public fieldStatic memberDefaultTimeout Defines the default value for the Timeout property.
Top
Extension Methods
 NameDescription
Public Extension MethodGetEnumValueOrDefault Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Public Extension MethodGetEnumValueOrDefaultT Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions)
Top
See Also