The FTPConnection type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | CancelResume | Cancel the resume. |
![]() | CancelTransfer | Cancels the current transfer. |
![]() | ChangeWorkingDirectory |
Changes the working directory.
|
![]() | ChangeWorkingDirectoryUp |
Changes to the parent of the current working directory on the server.
|
![]() | CheckConnection |
Checks if the client has connected to the server and throws an exception if it hasn't.
This is only intended to be used by subclasses
|
![]() | CheckFTPType |
Checks the FTP type and throws an exception if it's incorrect.
|
![]() | Close()()()() | Quit the FTP session. |
![]() | Close(Boolean) | Close the FTP connection. |
![]() | Connect | Connect to the FTP server and (if AutoLogin is set) log into the server. |
![]() | CreateDirectory | Create the specified remote directory. |
![]() | CreateObjRef |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.) |
![]() | DeleteDirectory | Delete the specified remote directory. |
![]() | DeleteFile | Delete the specified remote file. |
![]() | DirectoryExists |
Tests if the given directory exists.
|
![]() | Dispose()()()() |
Releases all resources used by the Component.
(Inherited from Component.) |
![]() | Dispose(Boolean) | Disconnect from the server (if connected). (Overrides Component..::..Dispose(Boolean).) |
![]() | DownloadByteArray | Download data from the FTP server and return it as a byte-array. |
![]() | DownloadFile | Download a file from the FTP server and save it locally. |
![]() | DownloadStream | Download a file from the FTP server and write it to the given stream. |
![]() | Equals | (Inherited from Object.) |
![]() | Exists |
Checks for the existence of a file on the server.
|
![]() | Finalize |
Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection.
(Inherited from Component.) |
![]() | ftpClient_BytesTransferred |
Event-handler for BytesTransferred events received from IFileTransferClients.
|
![]() | ftpClient_CommandSent |
Event-handler for [!:IFileTransferClient.CommandSent] events received from IFileTransferClients.
|
![]() | ftpClient_ReplyReceived |
Event-handler for [!:IFileTransferClient.ReplyReceived] events received from IFileTransferClients.
|
![]() | GetCommandHelp | Get the help text for the specified FTP command. |
![]() | GetFeatures | Get the server supplied features. |
![]() | GetFileInfos()()()() |
Returns the working directory's contents as an array of FTPFile objects.
|
![]() | GetFileInfos(String) |
Returns the given directory's contents as an array of FTPFile objects.
|
![]() | GetFileInfos(String, FTPFileCallback) |
Returns the given directory's contents as an array of FTPFile objects.
|
![]() | GetFiles()()()() |
Lists current working directory's contents as an array of strings of file-names.
|
![]() | GetFiles(String) |
List the given directory's contents as an array of strings of file-names.
|
![]() | GetFiles(String, Boolean) |
List the given directory's contents as an array of strings of file-names or
full file details.
|
![]() | GetHashCode |
Returns hash-code for this connection.
(Overrides Object..::..GetHashCode()()()().) |
![]() | GetLastWriteTime | Get modification time for a remote file. |
![]() | GetLifetimeService |
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) |
![]() | GetService | (Inherited from Component.) |
![]() | GetSize |
Get the size of a remote file.
|
![]() | GetSystemType | Get the type of the operating system at the server. |
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | GetURL()()()() |
Returns a URL corresponding to the current state of this SecureFTPConnection.
|
![]() | GetURL(Boolean, Boolean, Boolean) |
Returns a URL corresponding to the current state of this SecureFTPConnection.
The URL optionally includes the directory, user-name and password.
|
![]() | GetWorkingDirectory | Obsolete.
Returns the working directory on the server.
|
![]() | InitializeLifetimeService |
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.) |
![]() | InvokeDelegate |
Invokes the given delegate.
|
![]() | InvokeEventHandler(Delegate, Object, EventArgs) |
Invokes the given event-handler.
|
![]() | InvokeEventHandler(Boolean, Delegate, Object, EventArgs) |
Invokes the given event-handler.
|
![]() | InvokeEventHandler(Boolean, Boolean, Delegate, Object, EventArgs) |
Invokes the given event-handler.
|
![]() | InvokeFTPCommand |
Invokes the given literal FTP command on the server.
|
![]() | InvokeSiteCommand |
Invokes the given site command on the server.
|
![]() | LinkComponent | |
![]() | Login | |
![]() | MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() | MemberwiseClone(Boolean) |
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.) |
![]() | OnBytesTransferred |
Called every time a specified number of bytes of data have been transferred.
|
![]() | OnChangedLocalDirectory |
Called when the local directory has been changed.
|
![]() | OnChangedServerDirectory |
Called when the server directory has been changed.
|
![]() | OnChangingLocalDirectory |
Called when the local directory is about to be changed.
|
![]() | OnChangingServerDirectory |
Called when the server directory is about to be changed.
|
![]() | OnClosed()()()() | Obsolete.
Called when a connection has closed.
|
![]() | OnClosed(Exception) |
Called when a connection has closed.
|
![]() | OnClosing()()()() | Obsolete.
Called when a connection is about to close.
|
![]() | OnClosing(Exception) |
Called when a connection is about to close.
|
![]() | OnConnected(Boolean) | Obsolete.
Called when a connection-attempt has completed.
|
![]() | OnConnected(Exception) |
Called when a connection is about to close.
|
![]() | OnConnecting |
Called when a connection-attempt is being made.
|
![]() | OnCreatedDirectory |
Called when a directory has been created.
|
![]() | OnCreatingDirectory |
Called when a directory is about to be created.
|
![]() | OnDeleted |
Called when a file deletion operation has completed (though it may have been cancelled).
|
![]() | OnDeletedDirectory |
Called when a directory has been deleted.
|
![]() | OnDeleting |
Called when a file is about to be deleted.
|
![]() | OnDeletingDirectory |
Called when a directory is about to be deleted.
|
![]() | OnDirectoryListed |
Called when a directory listing has been retrieved.
|
![]() | OnDirectoryListing |
Called when a directory listing is about to be retrieved.
|
![]() | OnDownloaded(array<Byte>[]()[][], String, Int64, Exception, Int64, DateTime) |
Called when a file downloading operation has completed (though it may have been cancelled).
|
![]() | OnDownloaded(Stream, String, Int64, Exception, Int64, DateTime) |
Called when a file downloading operation has completed (though it may have been cancelled).
|
![]() | OnDownloaded(String, String, Int64, Boolean, Exception, Int64, DateTime) |
Called when a file downloading operation has completed (though it may have been cancelled).
|
![]() | OnDownloading(String, Int64%, DateTime%) |
Called when a file is about to be downloaded.
|
![]() | OnDownloading(Stream, String, Int64, Int64%, DateTime%) |
Called when a file is about to be downloaded.
|
![]() | OnDownloading(String%, String, Boolean%, Int64%, DateTime%) |
Called when a file is about to be downloaded.
|
![]() | OnLoggedIn |
Called when the client has logged in.
|
![]() | OnLoggingIn |
Called when the client is about to log in.
|
![]() | OnPropertyChanged |
Called when a property has been changed.
|
![]() | OnRenamed |
Called when a file has been renamed.
|
![]() | OnRenaming |
Called when a file is about to be renamed.
|
![]() | OnUploaded(array<Byte>[]()[][], String, Int64, Boolean, Exception) |
Called when a file uploading operation has completed (though it may have been cancelled).
|
![]() | OnUploaded(Stream, Int64, String, Boolean, Exception, Int64) |
Called when a file uploading operation has completed (though it may have been cancelled).
|
![]() | OnUploaded(String, String, Int64, Boolean, Boolean, Exception) |
Called when a file uploading operation has completed (though it may have been cancelled).
|
![]() | OnUploading(array<Byte>[]()[][], String%, Boolean%) |
Called when a byte-array is about to be uploaded.
|
![]() | OnUploading(Stream, String%, Boolean%, Int64%) |
Called when a stream is about to be uploaded.
|
![]() | OnUploading(String, String%, Boolean%, Boolean%) |
Called when a file is about to be uploaded.
|
![]() | PerformAutoLogin | Attempt to log into the server if AutoLogin is on. |
![]() | PostLogin |
Called after the user has been successfully logged in.
|
![]() | RaiseBytesTransferred | Raise the BytesTransferred event. |
![]() | RaiseClosed | Raise the Closed event. |
![]() | RaiseClosing | Raise the Closing event. |
![]() | RaiseCommandSent | Raise the CommandSent event. |
![]() | RaiseConnected | Raise the Connected event. |
![]() | RaiseConnecting | Raise the Connecting event. |
![]() | RaiseCreatedDirectory | Raise the CreatedDirectory event. |
![]() | RaiseCreatingDirectory | Raise the CreatingDirectory event. |
![]() | RaiseDeleted | Raise the Deleted event. |
![]() | RaiseDeletedDirectory | Raise the DeletedDirectory event. |
![]() | RaiseDeleting | Raise the Deleting event. |
![]() | RaiseDeletingDirectory | Raise the DeletingDirectory event. |
![]() | RaiseDirectoryChanged | Raise the DirectoryChanged event. |
![]() | RaiseDirectoryChanging | Raise the DirectoryChanging event. |
![]() | RaiseDirectoryListed | Raise the DirectoryListed event. |
![]() | RaiseDirectoryListing | Raise the DirectoryListing event. |
![]() | RaiseDownloaded | Raise the Downloaded event. |
![]() | RaiseDownloading | Raise the Downloading event. |
![]() | RaiseLocalDirectoryChanged | Raise the LocalDirectoryChanged event. |
![]() | RaiseLocalDirectoryChanging | Raise the LocalDirectoryChanging event. |
![]() | RaiseLoggedIn | Raise the LoggedIn event. |
![]() | RaiseLoggingIn | Raise the LoggingIn event. |
![]() | RaisePropertyChanged | Raise the PropertyChanged event. |
![]() | RaiseRenamedFile | Raise the RenamedFile event. |
![]() | RaiseRenamingFile | Raise the RenamingFile event. |
![]() | RaiseReplyReceived | Raise the ReplyReceived event. |
![]() | RaiseServerDirectoryChanged | Raise the ServerDirectoryChanged event. |
![]() | RaiseServerDirectoryChanging | Raise the ServerDirectoryChanging event. |
![]() | RaiseUploaded | Raise the Uploaded event. |
![]() | RaiseUploading | Raise the Uploading event. |
![]() | RelativePathToAbsolute |
Combines a relative path with an absolute path.
|
![]() | RenameFile | Rename a file or directory. |
![]() | ResumeNextDownload | Make the next download resume at a specific point. |
![]() | ResumeNextTransfer | Make the next file transfer (upload or download) resume. |
![]() | ResumeTransfer | Obsolete. Make the next file transfer (upload or download) resume. |
![]() | SendAccountInfo |
Supply account info to the FTP server.
|
![]() | SendPassword |
Supply the password for the previously supplied
user-name to log into the FTP server. Must be
preceeded by the SendUserName(String) method
|
![]() | SendUserName |
Supply the user-name to log into an account on the FTP server.
Must be followed by the SendPassword(String) method.
|
![]() | SetLastWriteTime | Set modification time for a remote file. |
![]() | ToString |
Returns a string representation of the connection.
(Overrides Component..::..ToString()()()().) |
![]() | UploadByteArray(array<Byte>[]()[][], String) |
Upload an array of bytes to the FTP server in the current working directory.
|
![]() | UploadByteArray(array<Byte>[]()[][], String, Boolean) |
Upload data to the FTP server in the current working directory. Allows
appending if current file exists.
|
![]() | UploadFile(String, String) |
Upload a local file to the FTP server in the current working directory.
|
![]() | UploadFile(String, String, Boolean) |
Upload a local file to the FTP server in the current working directory. Allows appending
if current file exists.
|
![]() | UploadStream(Stream, String) |
Upload a stream of data to the FTP server in the current working directory.
|
![]() | UploadStream(Stream, String, Boolean) |
Upload a stream of data to the FTP server in the current working directory. Allows appending
if current file exists.
|