PowerTCP FTP for .NET
Ftp Class Members
Fields  Properties  Methods  Events


The following tables list the members exposed by Ftp.

Public Constructors
 NameDescription
Public ConstructorFtp ConstructorOverloaded.   
Top
Public Fields
 NameDescription
Public FieldDefaultPort The "well-known" default port 21 for connecting to standard FTP Servers.  
Top
Public Properties
 NameDescription
Public PropertyConnected Returns true when the control connection is connected.  
Public PropertyConnection The control connection used for FTP server communications.  
Public PropertyContainer (Inherited from System.ComponentModel.Component)
Public PropertyDataIsBusy Returns true while performing a copy or listing operation.  
Public PropertyEncodingOverridden.  Specifies the character encoding to be used by the component.  
Public PropertyFeatures A list of features that represent supported features documented in RFC 2389. Automatically populated the first time the value is read.  
Public PropertySession Specifies a complete FTP connection and authentication configuration.  
Public PropertySite (Inherited from System.ComponentModel.Component)
Public PropertySynchronizingObject Gets or sets the object used to marshal data to the UI thread (for raising events). (Inherited from Dart.Ftp.ComponentBase)
Public PropertySyncRoot Gets an object that is used to synchronize access to the upper layer protocol in use. (Inherited from Dart.Ftp.ComponentBase)
Public PropertyTag Gets or sets an object that stores any user data. (Inherited from Dart.Ftp.ComponentBase)
Public PropertyTimeout Gets or sets the timeout value (in milliseconds) used for send and receive timeouts.  
Public PropertyType Gets the current file transfer type.  
Public PropertyUsePWD Specifies whether to utilize PWD commands for file and listing operations.  
Top
Protected Properties
Public Methods
 NameDescription
Public MethodAbort Immediately terminate any file transfer or listing operation and close the control connection.  
Public MethodAbortData Aborts any ongoing file transfer.  
Public MethodAuthenticateOverloaded. Logs into the FTP server using username, password, and other configuration settings specified in Session.  
Public MethodChangeDirectoryUp Sends the "CDUP" command to the server.  
Public MethodClose Gracefully closes the connection.  
Public MethodConnectOverloaded. Connects to the specified FTP server using other parameters specified in Session.  
Public MethodCreateDirectory Sends the "MKD" command to the server.  
Public MethodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodDeleteOverloaded.  Sends the "DELE" command to the server.  
Public MethodDeleteDirectory Deletes a directory and all subfolders and files.  
Public MethodDisposeOverloaded. Overridden.  Releases the unmanaged resources used by the Component and optionally releases the managed resources.  
Public MethodGetOverloaded.  Get the specified files using a single method.  
Public MethodGetDirectory Gets the server's current working directory.  
Public MethodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodGetModificationTime Sends the "MDTM" command to the server and parses the response.  
Public MethodGetSize Get the size of a remote file.  
Public MethodGetSynchronization Computes a value that indicates whether a local and remote file are synchronized.  
Public MethodHelp Sends the "HELP" command to the server.  
Public MethodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodList Returns a flat listing of remote files and directories contained within a single directory.  
Public MethodListDirectoryTree Get a recursive directory listing of remote files and directories within a directory tree.  
Public MethodMarshalOverloaded.  Marshals a CopyResult to the UI thread.  
Public MethodNoop Sends the "NOOP" (no operation) command to the server.  
Public MethodPutOverloaded.  Upload a file to an FTP server.  
Public MethodRename Rename a file or directory.  
Public MethodSend Send the provided command over the control connection and return the response.  
Public MethodSetDirectory Sets the server's current working directory.  
Public MethodSetModificationTime Sets the specified file's modified time to the specified DateTime.  
Public MethodSetType Sends the TYPE command.  
Public MethodSite  
Public MethodStart Start a worker thread and execute the specified delegate.  
Public MethodStatus Shows current status of the FTP session.  
Public MethodStructureMount Mount a different file system.  
Public MethodSyst Identifies the type of system used on the server.  
Public MethodToString (Inherited from System.ComponentModel.Component)
Top
Protected Methods
 NameDescription
Protected MethodFinalize (Inherited from System.ComponentModel.Component)
Protected MethodGetService (Inherited from System.ComponentModel.Component)
Protected MethodMemberwiseCloneOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Protected MethodOnCopyRaises the Copy event.  
Protected MethodOnDataIsBusyChangedRaises the DataIsBusyChanged event.  
Protected MethodOnErrorRaises the Error event. (Inherited from Dart.Ftp.ComponentBase)
Protected MethodOnListingRaises the Listing event.  
Protected MethodOnProgressRaises the Progress event.  
Protected MethodOnUserStateRaises the UserState event. (Inherited from Dart.Ftp.ComponentBase)
Top
Public Events
 NameDescription
Public EventCopyRaised when Marshal(CopyResult,String,Object) is used.  
Public EventDataIsBusyChangedRaised when the value of DataIsBusy changes.  
Public EventDisposed (Inherited from System.ComponentModel.Component)
Public EventErrorRaised when Marshal(Exception) is used or an unhandled Exception is thrown in a worker thread created using Start. (Inherited from Dart.Ftp.ComponentBase)
Public EventListingRaised when Marshal(Listing,String,Object) is used.  
Public EventProgressReports progress information at the frequency specified by FtpSession.ProgressSize.  
Public EventUserStateRaised when Marshal(String,Object) is used. (Inherited from Dart.Ftp.ComponentBase)
Top
See Also

Reference

Ftp Class
Dart.Ftp Namespace


PowerTCP FTP for .NET Documentation Version 6.1
© 2023 Dart Communications. All Rights Reserved.
Send comments on this topic