Click or drag to resize

FtpClient Class

Represents an abstract FTP session for the specified target FtpType.
Inheritance Hierarchy
SystemObject
  GSF.Net.AbstractFtpClientFtpClient

Namespace:  GSF.Net.AbstractFtpClient
Assembly:  GSF.Net (in GSF.Net.dll) Version: 2.3.313-beta
Syntax
public class FtpClient : IDisposable
Request Example 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 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.
Public propertyServer
Gets or sets FTP server name (DNS name or IP).
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 methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetCurrentDirectory
Changes the current FTP session directory to the specified path.
Public methodToString
Returns 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
Extension Methods
  NameDescription
Public Extension MethodGetEnumValueOrDefault(Type, Object)Overloaded.
Gets the enumeration constant for value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions.)
Public Extension MethodGetEnumValueOrDefaultT(Object)Overloaded.
Gets the enumeration constant for this value, if defined in the enumeration, or a default value.
(Defined by EnumExtensions.)
Top
See Also