edtFTPnet/Express - Class Reference

FTPController Class

Non-visual Windows Forms component attach user-defined buttons or menu-items to various operations of an ExFTPConnection or SecureFTPConnection.

For a list of all members of this type, see FTPController Members.

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         EnterpriseDT.Net.Ftp.Forms.FTPController

public class FTPController : Component, IFTPComponent

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

FTPController allows the developer to attach any Component with a Click-event to particular FTP operations. Such components are termed Click Event-Sources.

It is important to note that the FTPController is an optional component whose presence it not required for the other FTP controls to be able to operate and interact. Its only function is to link buttons, hyperlinks or menu-items to particular FTP actions; if desired, this may be done by explicitly calling methods on the FTP connection object.

FTPController supports the following Click event-sources:

Click Event-SourceFTP Operation
LoadEventSource Prompts the user for a file-name and tries to load the FTP connection properties from that file using the Load method.
SaveEventSource Prompts the user for a file-name and tries to save the properties of the associated ExFTPConnection or SecureFTPConnection to that file using the Save method.
ConnectEventSource Causes the associated FTP connection to attempt to connect to an FTP server as defined by its properties (see Connect).
CloseEventSource Causes the associated FTP connection to close (see Close).
RefreshEventSource Causes the associated FTP connection to get the content of the current directory (see GetFileInfos).
StopEventSource Causes the associated FTP connection to cancel the current transfer (see CancelTransfer).

Event-sources are enabled and disabled as appropriate. For example, initially only the Load, Save and Connect event-sources are enabled, and once the client has connected to the server only the Close and Refresh event-source will be enabled.

The dialog-boxes that are used to prompt the user for files may be manipulated using the LoadDialog and SaveDialog properties.

Requirements

Namespace: EnterpriseDT.Net.Ftp.Forms

Assembly: edtFTPnetEx (in edtFTPnetEx.dll)

See Also

FTPController Members | EnterpriseDT.Net.Ftp.Forms Namespace