Rebex FTP for .NET

Ftp Members

Ftp overview

Public Static Fields

DefaultPort Default FTP port (21).

Public Instance Constructors

Ftp Constructor Initializes a new instance of the Ftp class.

Public Instance Properties

AbortTimeout Gets or sets the length of time before the abort operation times out.
EnabledExtensions Gets or sets the bit field specifying the enabled extensions.
Encoding Gets or sets the Encoding to use to encode and decode command parameters and server responses.
KeepAliveDuringTransferInterval Gets or sets the length of interval between NOOP commands sent during transfer when the KeepAliveDuringTransfer option is enabled.
LocalEndPoint Gets the local client EndPoint.
Options Gets or sets FTP object options.
Passive Gets or sets a value which specifies the way data transfers are made.
Proxy Gets or sets the network proxy to use to access a remote server.
RemoteEndPoint Gets the remote server EndPoint.
State Gets the current state of the Ftp object.
SupportedExtensions Gets the bit field specifying the extensions supported by the server.
Timeout Gets or sets the length of time before the operation times out.
TransferState Gets the current transfer state of the Ftp object.
TransferType Gets or sets the data transfer type.
UploadBufferLength Gets or sets the size of the upload buffer. Allowed values are 2048 to 65536. Default is 4096.
Version Returns the version of the FTP component.

Public Instance Methods

Abort Aborts the current operation.
AppendFileOverloaded. Appends the content of the data stream to the file on the server.
BeginAppendFileOverloaded. Appends the content of the data stream to the file on the server.
BeginConnectOverloaded. Connects to an FTP server.
BeginCreateDirectory Creates directory on the server.
BeginDeleteFile Deletes the file on the server,
BeginDisconnect Informs the server that the connection is about to close and terminates the connection.
BeginGetCurrentDirectory Gets the absolute path of the current working directory on the remote server.
BeginGetFileOverloaded. Downloads the remote file to the data stream.
BeginGetFileDateTime Returns the modification date and time of the specified remote file.
BeginGetFileLength Returns the size of the specified remote file.
BeginGetListOverloaded. Returns parsed list of files and directories in the current server directory.
BeginGetNameListOverloaded. Retrieves the list of names.
BeginGetRawListOverloaded. Retrieves the raw list of files and directories as received from the server.
BeginGetSystemName Returns the name of the remote OS.
BeginChangeDirectory Changes the current working directory on the server.
BeginKeepAlive Sends the NOOP command to the server to keep the connection alive.
BeginLogin Authenticates the user to the FTP server.
BeginLogoffObsolete. This method is now obsolete. It is just an empty stub. It is NOT necessary to call this before disconnecting or attempting another login!
BeginPutFileOverloaded. Uploads the content of the data stream to the file on the server.
BeginPutUniqueFileOverloaded. Uploads the content of the data stream to the file with unique pathname on the server.
BeginReadResponse Returns the server response.
BeginReinitialize Terminates the user and flushes all state information on the server. The connection is left open.
BeginRemoveDirectory Deletes an empty remote directory with a specified pathname.
BeginRename Renames a file on the server.
BeginSendCommand Executes a command on the FTP server.
BeginSetTransferType Sets the data transfer type.
BeginSite Executes site-specific command and returns the response.
ConnectOverloaded. Connects to the FTP server.
CreateDirectory Creates a directory on the server.
DeleteFile Deletes the file on the server,
Disconnect Informs the server that the connection is about to close and terminates the connection.
DisposeOverloaded. Disposes the Ftp object and all the socket objects.
EndAppendFile Ends a pending asynchronous file append.
EndConnect Ends a pending asynchronous connect.
EndCreateDirectory Ends a pending asynchronous directory creation.
EndDeleteFile Ends a pending asynchronous delete file operation.
EndDisconnect Ends a pending asynchronous disconnect operation.
EndGetCurrentDirectory Ends a pending asynchronous operation.
EndGetFile Ends a pending asynchronous file download.
EndGetFileDateTime Ends a pending asynchronous datetime request.
EndGetFileLength Ends a pending asynchronous length request.
EndGetList Ends a pending asynchronous operation.
EndGetNameList Ends a pending asynchronous operation.
EndGetRawList Ends a pending asynchronous operation.
EndGetSystemName Ends a pending asynchronous SYST command.
EndChangeDirectory Ends a pending asynchronous operation.
EndKeepAlive Ends a pending asynchronous NOOP command.
EndLogin Ends a pending asynchronous login.
EndLogoff Ends a pending asynchronous logoff.
EndPutFile Ends a pending asynchronous file upload.
EndPutUniqueFile Ends a pending asynchronous file upload.
EndReadResponse Ends a pending asynchronous response read.
EndReinitialize Ends a pending asynchronous reinitialize.
EndRemoveDirectory Ends a pending asynchronous operation.
EndRename Ends a pending asynchronous rename operation.
EndSendCommand Ends a pending asynchronous command send.
EndSetTransferType Ends a pending asynchronous operation.
EndSite Ends a pending asynchronous SITE command.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
Flush Reads and returns control connection data, if available.
GetConnectionState Checks whether the FTP session is still connected and returns its state.
GetCurrentDirectory Gets the absolute path of the current working directory on the remote server.
GetDownloadStream Returns a Stream for reading data from the remote file.
GetFileOverloaded. Downloads the remote file to the data stream.
GetFileDateTime Returns the modification date and time of the specified remote file.
GetFileLength Returns the size of the specified remote file.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetListOverloaded. Returns parsed list of files and directories in the current server directory.
GetNameListOverloaded. Retrieves the list of names.
GetRawListOverloaded. Retrieves the raw list of files and directories as received from the server.
GetSystemName Returns the name of the remote OS.
GetType (inherited from Object)Gets the Type of the current instance.
GetUploadStream Returns a Stream for writing data to the remote file.
ChangeDirectory Changes the current working directory on the server.
CheckConnectionState Checks whether the FTP session is still connected. Throws an exception on error.
KeepAlive Sends the NOOP command to the server to keep the connection alive.
Login Authenticates the user to the FTP server.
LogoffObsolete. This method is now obsolete. It is just an empty stub. It is NOT necessary to call this before disconnecting or attempting another login!
PutFileOverloaded. Uploads the content of the data stream to the file on the server.
PutUniqueFileOverloaded. Uploads the content of the stream to the file with unique pathname on the server.
ReadResponse Returns the response of the FTP server to the command.
Reinitialize Terminates the user and flushes all state information on the server. The connection is left open.
RemoveDirectory Deletes an empty remote directory with the specified pathname.
Rename Renames a file on the server.
SendCommand Executes a command on the FTP server.
SetTransferType Sets the data transfer type.
Site Executes site-specific command and returns the response.
ToString (inherited from Object)Returns a String that represents the current Object.

Public Instance Events

CommandSent Occurs when a command is send to the server.
ResponseRead Occurs when a response is received from the server.
StateChanged Occurs when the state of the Ftp object is changed.
TransferProgress Occurs when data is send or received.

Protected Instance Methods

DisposeOverloaded. Releases the unmanaged resources used by the Ftp and optionally releases the managed resources.
Finalize Finalizer. Called by garbage collector during object destruction.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnCommandSent Raises the CommandSent event.
OnResponseRead Raises the ResponseRead event.
OnStateChanged Raises the StateChanged event.
OnTransferProgress Raises the TransferProgress event.

See Also

Ftp Class | Rebex.Net Namespace